Description
Fires before fetching the post thumbnail HTML. Provides "just in time" filtering of all filters in wp_get_attachment_image().
Occurrences
Filename | Line Number |
---|---|
wp-includes/post-thumbnail-template.php | 183 |
Parameters
Type | Name | Description |
---|---|---|
int | $post_id | The post ID. |
int | $post_thumbnail_id | The post thumbnail ID. |
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). |
PHP Doc
/**
* Fires before fetching the post thumbnail HTML.
*
* Provides "just in time" filtering of all filters in wp_get_attachment_image().
*
* @since 2.9.0
*
* @param int $post_id The post ID.
* @param int $post_thumbnail_id The post thumbnail ID.
* @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).
*/