On this page
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
File: wp-includes/post-thumbnail-template.php. View all references
return (bool) apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id );
Related
Used By
| Used By | Description |
|---|---|
| has_post_thumbnail() wp-includes/post-thumbnail-template.php | Determines whether a post has an image attached. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/has_post_thumbnail