post_thumbnail_url WordPress Filter Hook
The post_thumbnail_url hook is used to retrieve the URL of a post thumbnail. This hook can be used in a number of ways, such as to get the URL of a featured image or to get the URL of an image attached to a post.
apply_filters( 'post_thumbnail_url', string|false $thumbnail_url , int|WP_Post|null $post , string|int[] $size ) #
Filters the post thumbnail URL.
Parameters
Source
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |