Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/post-thumbnail-template.php | apply_filters | 265 | /** * Filters the post thumbnail URL. * * @since 5.9.0 * * @param string|false $thumbnail_url Post thumbnail URL or false if the post does not exist. * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. * @param string|int[] $size Registered image size to retrieve the source for or a flat array * of height and width dimensions. Default 'post-thumbnail'. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string|false | $thumbnail_url | Post thumbnail URL or false if the post does not exist. |
int|WP_Post|null | $post | Post ID or WP_Post object. Default is global `$post`. |
string|int[] | $size | Registered image size to retrieve the source for or a flat array |