ibdesigner
1/11/2017 - 8:25 PM

Adding custom images sizes to the wordpress media library

Adding custom images sizes to the wordpress media library

add_filter('image_size_names_choose', 'my_image_sizes');
function my_image_sizes($sizes) {
$addsizes = array(
"new-size" => __( "New Size")
);
$newsizes = array_merge($sizes, $addsizes);
return $newsizes;
}