Filter hook 'post_thumbnail_id'

in WP Core File wp-includes/post-thumbnail-template.php at line 70

Description

Filters the post thumbnail ID.

Occurrences

Filename Line Number
wp-includes/post-thumbnail-template.php 70

Parameters

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`.

PHP Doc

/**
	 * 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`.
	 */