WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

admin_post_thumbnail_size хук-фильтр . 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_338', 10, 3 );
function filter_function_name_338( $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.
По умолчанию: 'post-thumbnail'
Post thumbnail attachment ID.
The post object associated with the thumbnail.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

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

Где используется хук (в ядре WP)

Использование не найдено.