Filter hook 'has_post_thumbnail'

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

Description

Filters whether a post has a post thumbnail.

Occurrences

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

Parameters

Type Name Description
bool $has_thumbnail true if the post has a post thumbnail, otherwise false.
int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`.
int|false $thumbnail_id Post thumbnail ID or false if the post does not exist.

PHP Doc

/**
	 * Filters whether a post has a post thumbnail.
	 *
	 * @since 5.1.0
	 *
	 * @param bool             $has_thumbnail true if the post has a post thumbnail, otherwise false.
	 * @param int|WP_Post|null $post          Post ID or WP_Post object. Default is global `$post`.
	 * @param int|false        $thumbnail_id  Post thumbnail ID or false if the post does not exist.
	 */