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



_wp_post_thumbnail_class_filter_add ›

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

Adds '_wp_post_thumbnail_class_filter' callback to the 'wp_get_attachment_image_attributes' filter hook. Internal use only.



源码

function _wp_post_thumbnail_class_filter_add( $attr ) {
	add_filter( 'wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter' );
}