wp_make_content_images_responsive

SummerySummery

Filters ‘img’ elements in post content to add ‘srcset’ and ‘sizes’ attributes.

Syntax

wp_make_content_images_responsive( string $content )

ParametersParameters

$content

(string) (Required) The raw post content to be filtered.

ReturnReturn

(string) Converted content with 'srcset' and 'sizes' attributes added to images.

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.

See alsoSee also

Scroll to Top