WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about post_thumbnail_id

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post-thumbnail-template.php apply_filters 70 /**
* Filters the post thumbnail ID.
*
* @since 5.9.0
*
* @param int|false $thumbnail_id Post thumbnail ID or false if the post does not exist.
* @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`.
*/

Hook Parameters

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