Un motore di ricerca WordPress per sviluppatori e autori di temi



_wp_post_thumbnail_class_filter_add ›

Da2.9.0
Deprecaton/a
_wp_post_thumbnail_class_filter_add ( $attr )
Parametri:
  • (array) $attr Thumbnail attributes including src, class, alt, title.
    Richiesto:
Definito a:
Codex:

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



Sorgenti

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