Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes.
Description
See also
Parameters
$contentstringrequired- The raw post content to be filtered.
Source
function wp_make_content_images_responsive( $content ) {
_deprecated_function( __FUNCTION__, '5.5.0', 'wp_filter_content_tags()' );
// This will also add the `loading` attribute to `img` tags, if enabled.
return wp_filter_content_tags( $content );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.