[wp-trac] [WordPress Trac] #18584: Nav menus need more hooks for extensibility (on admin page & in customizer)

WordPress Trac noreply at wordpress.org
Mon Jan 25 01:26:10 UTC 2016


#18584: Nav menus need more hooks for extensibility (on admin page & in customizer)
--------------------------+-----------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Customize     |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+-----------------------------

Comment (by westonruter):

 Replying to [comment:65 helgatheviking]:
 > Hi @westonruter, I don't completely understand the benefit of using a
 filter here in lieu of an action hook. Could you elaborate a little more
 on your thinking here?

 The benefit of a filter is that existing fields can be removed or
 modified, in addition to new fields being added. With an action, you can
 only inject new fields at the end. A filter seems to be more flexible.

 > How important are the screen options and display toggle? If you've added
 a plugin that is meant to show the meta fields it seems like you'd be
 unlikely to want to hide them. Just my thought, though if it doesn't hold
 up getting this resolved I'm certainly not opposed to it.

 The thought here is to make the API as complete as possible.

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


More information about the wp-trac mailing list