Viewing 1 replies (of 1 total)
  • You have to use image_size_names_choose filter in your functions.php file like this:

    function my_image_size_names( $sizes ) {
    	return array_merge( $sizes, array(
    		'custom-size' => __( 'Custom Size' ),
    	) );
    }
    add_filter( 'image_size_names_choose', 'my_image_size_names' );

    As a side-effect the custom size will be selectable in Media Library admin.

Viewing 1 replies (of 1 total)
  • The topic ‘custom pre-defined sizes added to dropdown possible ?’ is closed to new replies.