post_thumbnail_id

post_thumbnail_id

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('post_thumbnail_id') is found 1 times:

  • /wp-includes/post-thumbnail-template.php line 70
    	 *
    	 * @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`.
    	 */
    	return (int) apply_filters( 'post_thumbnail_id', $thumbnail_id, $post );
    }
    
    /**
     * Displays the post thumbnail.
     *
     * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size