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

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

This filter is documented in wp-admin/includes/media.php

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

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

add_filter( 'image_size_names_choose', 'filter_function_name_3948' );
function filter_function_name_3948( $array ){
	// filter...

	return $array;
}
$array
-

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

get_default_block_editor_settings()
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
image_size_input_fields()
image_size_names_choose
wp-includes/block-editor.php 160-168
$image_size_names = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media-template.php 851-859
$sizes = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media-template.php 931-939
$size_names = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media-template.php 1122-1130
$sizes = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-includes/media.php 4060-4068
$possible_sizes = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);
wp-admin/includes/class-custom-background.php 601-609
apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
)
wp-admin/includes/media.php 1176-1184
$size_names = apply_filters(
	'image_size_names_choose',
	array(
		'thumbnail' => __( 'Thumbnail' ),
		'medium'    => __( 'Medium' ),
		'large'     => __( 'Large' ),
		'full'      => __( 'Full Size' ),
	)
);

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

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