WordPress开发者和主题制作者的搜索引擎



_wp_post_thumbnail_class_filter_remove ›

Since2.9.0
已弃用n/a
_wp_post_thumbnail_class_filter_remove ( $attr )
参数:
  • (array) $attr Thumbnail attributes including src, class, alt, title.
    Required: Yes
定义在:
文档:

Removes the '_wp_post_thumbnail_class_filter' callback from the 'wp_get_attachment_image_attributes' filter hook. Internal use only.



源码

function _wp_post_thumbnail_class_filter_remove( $attr ) {
	remove_filter( 'wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter' );
}