HTTP/2 301
server: nginx
date: Fri, 10 Oct 2025 16:56:23 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/functions/wp_make_content_images_responsive/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
HTTP/2 200
server: nginx
date: Fri, 10 Oct 2025 16:56:23 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
wp_make_content_images_responsive() – Function | Developer.WordPress.org
WordPress Developer Resources
wp_make_content_images_responsive()
wp_make_content_images_responsive( string $content ): string
Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes.
$content
string required The raw post content to be filtered.
string Converted content with 'srcset'
and 'sizes'
attributes added to images.
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 );
}
View all references View on Trac View on GitHub
User Contributed Notes
You must log in before being able to contribute a note or feedback.