WordPress at Your Fingertips
filter is not described

post_thumbnail_size filter-hook . WP 2.9.0

Filters the post thumbnail size.


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

	return $size;
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
The post ID.


Since 2.9.0 Introduced.
Since 4.9.0 Added the $post_id parameter.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.