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

WordPress Trac noreply at wordpress.org
Thu Jan 7 20:31:35 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 helgatheviking):

 Nav Menu Roles is available on [https://github.com/helgatheviking/Nav-
 Menu-Roles/ github] and in the repo too.

 Specifically, I am [https://github.com/helgatheviking/Nav-Menu-
 Roles/blob/master/nav-menu-roles.php#L117 filtering the admin menu Walker
 ] and then providing a duplicate of the default Walker with only a
 [https://github.com/helgatheviking/Nav-Menu-
 Roles/blob/master/inc/class.Walker_Nav_Menu_Edit_Roles.php#L198 do_action]
 hook added. Finally, I am adding the fields to that hook with
 [https://github.com/helgatheviking/Nav-Menu-Roles/blob/master/nav-menu-
 roles.php#L292 this callback] and saving the meta on
 `wp_update_nav_menu_item` hook with the following
 [https://github.com/helgatheviking/Nav-Menu-Roles/blob/master/nav-menu-
 roles.php#L411 callback]

 Let me know if I can clarify anything.

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


More information about the wp-trac mailing list