禁用WordPress的响应式图片

禁用WordPress的响应式图片

/**
 * WP 4.4 introduces automatic responsive image generation. Although very useful, for some sites it is not necessary.
 *
 * As official supporter of "Options, not Decisions", this filter is perfect to give you the option to turn this feature off.
 *
 * @source: //linkedin.com/grp/post/1482937-6069874958148923392
 */
remove_filter( 'the_content', 'wp_make_content_images_responsive' );

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据