I've registered new image size by using:
add_action("init", "addcustomthumbsize");
function addcustomthumbsize() {
if (function_exists('add_image_size')) {
add_image_size('custom-thumb', 150, 150, true);
}
}
add_filter('image_size_names_choose', 'custom_thumbnail');
function custom_thumbnail($sizes) {
$addsizes = array(
"custom-thumb" => __("Custom thumbnail")
);
$newsizes = array_merge($sizes, $addsizes);
return $newsizes;
}
I'd like users to be able to crop images through the Media Library and apply the changes to this custom thumbnail only.
The problem is I can't figure out how to add the custom thumbnail to the list in Media Library -> Edit Image -> Thumbnail Settings. Currently the only available options are:
- All image sizes
- Thumbnail
- All sizes except thumbnail
Thanks