WordPress at Your Fingertips
filter is not described

post_thumbnail_html filter-hook . WP 2.9.0

Filters the post thumbnail HTML.


add_filter( 'post_thumbnail_html', 'filter_function_name_5007', 10, 5 );
function filter_function_name_5007( $html, $post_id, $post_thumbnail_id, $size, $attr ){
	// filter...

	return $html;
The post thumbnail HTML.
The post ID.
The post thumbnail ID.
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
Query string of attributes.


Since 2.9.0 Introduced.

Where the hook is called

wp-includes/post-thumbnail-template.php 209
return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr );

Where in WP core the hook is used WordPress

Usage not found.