_wp_post_thumbnail_class_filter Wordpress function


Description:

Adds a 'wp-post-image' class to post thumbnails
Uses the begin_fetch_post_thumbnail_html and end_fetch_post_thumbnail_html action hooks to
dynamically add/remove itself so as to only filter post thumbnails


Syntax:


Arguments:

(array) $attr Attributes including src, class, alt, title


Return Type:

(array)


Define At:

wp-includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/_wp_post_thumbnail_class_filter


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×