WordPress at a glance
filter is not described

post_thumbnail_size filter-hook . WP 2.9.0

Filters the post thumbnail size.

Usage

add_filter( 'post_thumbnail_size', 'filter_function_name_4427', 10, 2 );
function filter_function_name_4427( $size, $post_id ){
	// filter...

	return $size;
}
$size(string/array)
The post thumbnail size. Image size or array of width and height values (in that order).
Default: 'post-thumbnail'
$post_id(int)
The post ID.

Notes

  • Since 4.9.0 Added the $post_id parameter.

Where the hook is called

get_the_post_thumbnail()
post_thumbnail_size
wp-includes/post-thumbnail-template.php 135
$size = apply_filters( 'post_thumbnail_size', $size, $post->ID );

Where the hook is used (in WP core)

Does not used.