wp_make_content_images_responsive


wp_make_content_images_responsive ( $content )

Parameters:
  • (string) $content The raw post content to be filtered.
See:
Returns:
  • (string) Converted content with 'srcset' and 'sizes' attributes added to images.
Defined at:

Description

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

Related Functions

_wp_ajax_delete_comment_response, wp_get_attachment_image_sizes, _rotate_image_resource, wp_get_attachment_image_srcset, _crop_image_resource

Top Google Results

User discussions

wpseek mobile