[wp-trac] [WordPress Trac] #34843: Customizer: allow themes in the Customizer to be disabled by plugins

WordPress Trac noreply at wordpress.org
Fri Sep 29 20:28:58 UTC 2017


#34843: Customizer: allow themes in the Customizer to be disabled by plugins
-------------------------+-------------------------------
 Reporter:  mattwiebe    |       Owner:  celloexpressions
     Type:  enhancement  |      Status:  closed
 Priority:  high         |   Milestone:  4.9
Component:  Customize    |     Version:  4.4
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |     Focuses:
-------------------------+-------------------------------

Comment (by westonruter):

 As of [41648], themes can now be disabled in the Customizer via:

 {{{#!php
 <?php
 add_action( 'customize_register', function( $wp_customize ) {
         $wp_customize->remove_panel( 'themes' );
 }, 11 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34843#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list