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

File: wp-includes/post-thumbnail-template.php

View on GitHub



Changelog

Changelog
Version Description
5.9.0 Introduced.