You appear to be a bot. Output may be restricted
Description
Adds a 'wp-post-image' class to post thumbnails. Internal use only.
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.
Usage
$string[] = _wp_post_thumbnail_class_filter( $attr );
Parameters
- $attr
- ( string[] ) required – Array of thumbnail attributes including src, class, alt, title, keyed by attribute name.
Returns
string[] Modified array of attributes including the new 'wp-post-image' class.
Source
File name: wordpress/wp-includes/media.php
Lines:
1 to 4 of 4
function _wp_post_thumbnail_class_filter( $attr ) { $attr['class'] .= ' wp-post-image'; return $attr; }