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

WordPress Trac noreply at wordpress.org
Fri Jan 22 21:54:27 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:  has-patch     |     Focuses:  javascript
--------------------------+-----------------------------

Comment (by helgatheviking):

 For me, I can confirm that 1 hook in the Walker would be enough for my
 plugin. There is *already* the `wp_update_nav_menu_item` action that is
 fired when the item is saved, which I am using to sanitize and save my
 meta.

 Adding an action hook is the *only* thing that I am doing when I serve up
 my modified menu Walker. See [here](https://github.com/helgatheviking/Nav-
 Menu-Roles/blob/master/inc/class.Walker_Nav_Menu_Edit_Roles.php#L198)....
 served up by filtering `wp_edit_nav_menu_walker`.

 A handful of plugin authors got tired of waiting for this ticket so we
 agreed on a hook name, and added our own action hook so that no matter
 who's Walker gets served our plugins could play together. I don't want to
 speak for everyone else, but that's what I'm looking for from core.

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


More information about the wp-trac mailing list