bux23 of Micons
4/12/2017 - 10:25 AM

Add images size Wordpress

Add images size Wordpress

//////////////////////////////////////////////////////////////
///////// ADD CUSTOM IMAGE SIZES TO WP EDITOR 
//////////////////////////////////////////////////////////////
add_image_size( 'icon100', '100', '100', false );

function my_editor_image_sizes( $sizes ) {
    $sizes = array_merge( $sizes, array(
      'icon100' => __( 'icon 100px' )
    ));
    return $sizes;
}
add_filter( 'image_size_names_choose', 'my_editor_image_sizes' );