WordPress at a glance
filter is not described

admin_post_thumbnail_size filter-hook . WP 4.4.0

Filters the size used to display the post thumbnail image in the 'Featured image' meta box.

Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size is registered, which differs from the 'thumbnail' image size managed via the Settings > Media screen. See the $size parameter description for more information on default values.


add_filter( 'admin_post_thumbnail_size', 'filter_function_name_4690', 10, 3 );
function filter_function_name_4690( $size, $thumbnail_id, $post ){
	// filter...

	return $size;
Post thumbnail image size to display in the meta box. Accepts any valid image size, or an array of width and height values in pixels (in that order). If the 'post-thumbnail' size is set. Otherwise, default is an array with 266 as both the height and width values.
Default: 'post-thumbnail'
Post thumbnail attachment ID.
The post object associated with the thumbnail.


Since 4.4.0 Introduced.

Where the hook is called

wp-admin/includes/post.php 1551
$size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id, $post );

Where in WP core the hook is used WordPress

Usage not found.