
Brotli压缩:GZIP压缩替代方案
wp_make_content_images_responsive ( $content )
wp_make_content_images_responsive: 这是一个用于使WordPress网站内容中的图像具有响应性的功能。它为内容中的图片标签添加响应的CSS类,这样它们就会被缩小以适应小屏幕。
过滤文章内容中的’img’元素,添加’srcset’和’size’属性。
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 ); }