Description
Filters the post thumbnail URL.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post-thumbnail-template.php | 252 |
Parameters
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 of height and width dimensions. Default 'post-thumbnail'. |
PHP Doc
/**
* 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'.
*/