I want to add a new image size option to the contents image editor. The code below is what I currently have but for some reason I am not seeing the option (as shown in the image below) in the editor. I am using WordPress Version 4.6.1. What could be the problem? Thanks in advance.
add_image_size( 'activity-image', 300, 300, array( 'center', 'center' ) );
// Add new image sizes to post or page editor
function new_image_sizes($sizes) {
return array_merge( $sizes, array(
'activity-image' => __( 'Activity Image' ),
) );
}
add_filter('image_size_names_chooser', 'new_image_sizes');