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

WordPress Trac noreply at wordpress.org
Mon Mar 7 20:51:04 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 Chouby):

 @westonruter
 I started testing the trac-18584 branch of your github repository. For me,
 this makes the admin menu page fully functionnal. I used the new filter
 'wp_nav_menu_item_fields' to remove all default WP fields, add my own
 fields and populate them. This replaces efficiently the js hack that I
 currently use to obtain the same result. To save the fields, your current
 patch did not require any change to my 'wp_update_nav_menu_item' filter.

 The "dummy" fields correctly appear in the customizer. I am ready for
 further tests when you'll provide a way to populate the fields and save
 them.

 Replying to [comment:68 helgatheviking]:
 > Is it really a good idea to let someone remove the core fields like menu
 title?
 This is what I already do. Well, in fact, I replace the title and url
 fields by hidden fields.

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


More information about the wp-trac mailing list