Filter hook 'post_thumbnail_size'

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

Description

Filters the post thumbnail size.

Occurrences

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

Parameters

Type Name Description
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).
int $post_id The post ID.

PHP Doc

/**
	 * Filters the post thumbnail size.
	 *
	 * @since 2.9.0
	 * @since 4.9.0 Added the `$post_id` parameter.
	 *
	 * @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 int          $post_id The post ID.
	 */