Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_wp_post_thumbnail_class_filter_add ›

Seit2.9.0
Veraltetn/v
_wp_post_thumbnail_class_filter_add ( $attr )
Parameter:
  • (array) $attr Thumbnail attributes including src, class, alt, title.
    Erforderlich: Ja
Definiert in:
Codex:

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



Quellcode

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