image_edit_thumbnails_separately хук-фильтрWP 6.3.0

Shows the settings in the Image Editor that allow selecting to edit only the thumbnail of an image.

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

add_filter( 'image_edit_thumbnails_separately', 'wp_kama_image_edit_thumbnails_separately_filter' );

/**
 * Function for `image_edit_thumbnails_separately` filter-hook.
 * 
 * @param bool $show Whether to show the settings in the Image Editor.
 *
 * @return bool
 */
function wp_kama_image_edit_thumbnails_separately_filter( $show ){

	// filter...
	return $show;
}
$show(true|false)
Whether to show the settings in the Image Editor.
По умолчанию: false

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

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

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

wp_image_editor()
image_edit_thumbnails_separately
wp_save_image()
image_edit_thumbnails_separately
wp-admin/includes/image-edit.php 55
$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );
wp-admin/includes/image-edit.php 927
$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );

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

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