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

image_size_names_choose хук-фильтр . WP 3.3.0

Filters the names and labels of the default image sizes.

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

add_filter( 'image_size_names_choose', 'filter_function_name_1208' );
function filter_function_name_1208( $size_names ){
	// filter...

	return $size_names;
}
$size_names(массив)
Array of image sizes and their names.
По умолчанию: values include 'Thumbnail', 'Medium', 'Large', 'Full Size'

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

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

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

image_size_input_fields()
image_size_names_choose
wp_print_media_templates()
image_size_names_choose
wp_prepare_attachment_for_js()
image_size_names_choose
Custom_Background::wp_set_background_image()
image_size_names_choose
wp-admin/includes/media.php 1073-1081
$size_names = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media-template.php 754-762
$sizes = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media-template.php 833-841
$size_names = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media-template.php 1015-1023
$sizes = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media.php 3301-3309
$possible_sizes = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-admin/custom-background.php 583-591
apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
)
wp-admin/edit-form-blocks.php 208-216
$image_size_names = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);

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

wp-admin/includes/ajax-actions.php 3634
add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) );
wp-admin/includes/ajax-actions.php 3649
add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) );