wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_make_content_images_responsive › WordPress Function

Desde4.4.0
Obsoleto5.5.0
› wp_make_content_images_responsive ( $content )
Parâmetros:
  • (string) $content The raw post content to be filtered.
    Required: Yes
Ver:
Retorna:
  • (string) Converted content with 'srcset' and 'sizes' attributes added to images.
Definido em:
Codex:

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



Fonte

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 );
}