WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about post_thumbnail_html

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post-thumbnail-template.php apply_filters 232 /**
* Filters the post thumbnail HTML.
*
* @since 2.9.0
*
* @param string $html The post thumbnail HTML.
* @param int $post_id The post ID.
* @param int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
* @param string|int[] $size Requested image size. Can be any registered image size name, or
* an array of width and height values in pixels (in that order).
* @param string|array $attr Query string or array of attributes.
*/

Hook Parameters

Parameter Type Name Description
string $html The post thumbnail HTML.
int $post_id The post ID.
int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
string|int[] $size Requested image size. Can be any registered image size name, or
string|array $attr Query string or array of attributes.