[wp-trac] [WordPress Trac] #26768: Add remove_image_size()

WordPress Trac noreply at wordpress.org
Sat Jan 4 16:14:15 UTC 2014


#26768: Add remove_image_size()
-----------------------------+------------------
 Reporter:  Daedalon         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  3.9
Component:  Media            |     Version:  3.8
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------

Comment (by Daedalon):

 Thanks, Marko! Tested in 3.8. Works like a charm. It's now possible to
 remove and/or redefine image sizes upon init:

 {{{
 function my_custom_image_sizes( ) {
         remove_image_size( 'theme-image-size' ); // Removing default size
         add_image_size( 'theme-image-size', 400, 300 ); // Re-adding with
 a custom size
 }
 add_action( 'init', 'my_remove_image_sizes' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26768#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list