apply_filters( 'post_thumbnail_url', string|false $thumbnail_url , int|WP_Post|null $post , string|int[] $size )
Filters the post thumbnail URL.
Parameters
- $thumbnail_url
-
Post thumbnail URL or false if the post does not exist.
- $post
-
Post ID or WP_Post object. Default is global
$post
. - $size
-
Registered image size to retrieve the source for or a flat array of height and width dimensions. Default 'post-thumbnail'.
Source
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |