has_post_thumbnail

has_post_thumbnail

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('has_post_thumbnail') is found 1 times:

  • /wp-includes/post-thumbnail-template.php line 38
    	 * @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.
    	 */
    	return (bool) apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id );
    }
    
    /**
     * Retrieves the post thumbnail ID.
     *
     * @since 2.9.0