[wp-trac] [WordPress Trac] #39449: `customize_loaded_components` filter is too late for themes

WordPress Trac noreply at wordpress.org
Tue Jan 3 15:12:08 UTC 2017


#39449: `customize_loaded_components` filter is too late for themes
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Customize        |    Version:
 Severity:  normal           |   Keywords:  dev-feedback
  Focuses:                   |
-----------------------------+-----------------------------
 As a WordPress theme developer, I want to remove nav menus from the
 Customizer when the theme doesn't make use of widgets or menus.

 The `customize_loaded_components` filter fires on `plugins_loaded` though,
 which mean my theme can't use it to filter components to load. Instead, I
 have to use an imprecise set of `remove_action` and `remove_filter` calls.

 It would be better to have an explicit API for themes to filter which
 components to load.

 Previously #33552

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39449>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list