On this page
apply_filters( 'post_thumbnail_id', int|false $thumbnail_id, int|WP_Post|null $post )
Filters the post thumbnail ID.
Parameters
Source
File: wp-includes/post-thumbnail-template.php. View all references
return (int) apply_filters( 'post_thumbnail_id', $thumbnail_id, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_post_thumbnail_id() wp-includes/post-thumbnail-template.php | Retrieves the post thumbnail ID. |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_thumbnail_id