apply_filters( 'post_thumbnail_id', int|false $thumbnail_id, int|WP_Post|null $post )

Filters the post thumbnail ID.


Parameters

$thumbnail_id int|false
Post thumbnail ID or false if the post does not exist.
$post int|WP_Post|null
Post ID or WP_Post object. Default is global $post.

Top ↑

Source

File: wp-includes/post-thumbnail-template.php. View all references

return (int) apply_filters( 'post_thumbnail_id', $thumbnail_id, $post );


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.