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

WordPress Trac noreply at wordpress.org
Thu May 12 14:01:11 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 grapplerulrich):

 Could we also a specific class for the "Navigation Label"? All of the
 other sections have something like "field-url". Perhaps we could use `<p
 class="field-title description description-wide">`

 I built a [https://github.com/wearerequired/custom-menu-item-types plugin]
 for a client's website and used the version of the class that @westonruter
 created.

 One other problem that I came across was that I when I created a new field
 the data was not transferred with the ajax request that WP made when
 adding a new menu. The reason is that WP has a list of fields that it
 fetches the data from.
 https://github.com/WordPress/WordPress/blob/4.5-branch/wp-admin/js/nav-
 menu.js#L208-L222

 I could continue the work that @westonruter started but need a bit of
 guidance and help with the JS and customizer problems.

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


More information about the wp-trac mailing list