apply_filters( 'post_thumbnail_id', int|false $thumbnail_id , int|WP_Post|null $post )
Filters the post thumbnail ID.
Parameters
- $thumbnail_id
-
Post thumbnail ID or false if the post does not exist.
- $post
-
Post ID or WP_Post object. Default is global
$post
.
Source
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |