image_edit_thumbnails_separately
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 | Введена. |
Где вызывается хук
image_edit_thumbnails_separately
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 936
$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );