Filter hook 'post_thumbnail_html'

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

Description

Filters the post thumbnail HTML.

Occurrences

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

Parameters

Type Name Description
string $html The post thumbnail HTML.
int $post_id The post ID.
int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
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).
string|array $attr Query string or array of attributes.

PHP Doc

/**
	 * Filters the post thumbnail HTML.
	 *
	 * @since 2.9.0
	 *
	 * @param string       $html              The post thumbnail HTML.
	 * @param int          $post_id           The post ID.
	 * @param int          $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
	 * @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.
	 */