post_thumbnail_html

post_thumbnail_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('post_thumbnail_html') is found 1 times:

  • /wp-includes/post-thumbnail-template.php line 236
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
         * @param string|int[] $size              Requested image size. Can be any registered image size name, or
         *                                        an array of width and height values in pixels (in that order).
         * @param string|array $attr              Query string or array of attributes.
         */
        return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr );
    }
     
    /**
     * Returns the post thumbnail URL.
     *
     * @since 4.4.0

See this hook used in plugins: