Filter hook 'admin_post_thumbnail_size'

in WP Core File wp-admin/includes/post.php at line 1660

Description

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.

Occurrences

Filename Line Number
wp-admin/includes/post.php 1660

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 $thumbnail_id Post thumbnail attachment ID.
WP_Post $post The post object associated with the thumbnail.

PHP Doc

/**
		 * 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.
		 *
		 * @since 4.4.0
		 *
		 * @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          $thumbnail_id Post thumbnail attachment ID.
		 * @param WP_Post      $post         The post object associated with the thumbnail.
		 */