apply_filters( 'has_post_thumbnail', bool $has_thumbnail, int|WP_Post|null $post, int|false $thumbnail_id )
Filters whether a post has a post thumbnail.
Parameters
Source
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/has_post_thumbnail