A WordPress-centric search engine for devs and theme authors



_wp_post_thumbnail_class_filter_add ›

Since2.9.0
Deprecatedn/a
_wp_post_thumbnail_class_filter_add ( $attr )
Parameters:
  • (array) $attr Thumbnail attributes including src, class, alt, title.
    Required: Yes
Defined at:
Codex:

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



Source

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