[wp-trac] [WordPress Trac] #44976: Proposal to add deregister_control_type(), deregister_panel_type() and deregister_section_type() methods to WP_Customize_Manager

WordPress Trac noreply at wordpress.org
Sat Sep 22 20:21:53 UTC 2018


#44976: Proposal to add deregister_control_type(), deregister_panel_type() and
deregister_section_type() methods to WP_Customize_Manager
-------------------------------------------------+-------------------------
 Reporter:  Collizo4sky                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Customize                            |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing dev-         |     Focuses:
  feedback                                       |  accessibility
-------------------------------------------------+-------------------------

Comment (by Collizo4sky):

 If there is a way to register a control type, shouldn’t there be to
 deregister?

 Currently working on a project where we have a need too remove totoally
 from the customizer the js wp.template code of a custom control created by
 the active theme.

 Without a way to deregister it, it will still be printed to customizer.

 I hope that answers your question.

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


More information about the wp-trac mailing list