edit_custom_thumbnail_sizes filter-hookWP 6.0.0

Filters whether custom sizes are available options for image editing.

Usage

add_filter( 'edit_custom_thumbnail_sizes', 'wp_kama_edit_custom_thumbnail_sizes_filter' );

/**
 * Function for `edit_custom_thumbnail_sizes` filter-hook.
 * 
 * @param bool|string[] $edit_custom_sizes True if custom sizes can be edited or array of custom size names.
 *
 * @return bool|string[]
 */
function wp_kama_edit_custom_thumbnail_sizes_filter( $edit_custom_sizes ){

	// filter...
	return $edit_custom_sizes;
}
$edit_custom_sizes(true|false|string[])
True if custom sizes can be edited or array of custom size names.

Changelog

Since 6.0.0 Introduced.

Where the hook is called

wp_image_editor()
edit_custom_thumbnail_sizes
wp-admin/includes/image-edit.php 54
$edit_custom_sizes = apply_filters( 'edit_custom_thumbnail_sizes', $edit_custom_sizes );

Where the hook is used in WordPress

Usage not found.