post_thumbnail_id

post_thumbnail_id

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('post_thumbnail_id') is found 1 times:

  • /wp-includes/post-thumbnail-template.php line 70
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
         *
         * @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