Make WordPress Core

Opened 9 years ago

Last modified 6 years ago

#35055 new feature request

Custom Meta for nav_menu_items

Reported by: vincentastolfi's profile vincentastolfi Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Menus Keywords:
Focuses: Cc:

Description

With the release of custom meta for taxonomy terms, I can't help but suggest the same for nav_menu_items.

One can currently use a custom walker class as demonstrated here:
https://github.com/kucrut/wp-menu-item-custom-fields

However this is a tedious and ultimately ridiculous method, as Core should lend itself to easy customization and display of nav_menu_item meta. Not to mention this method makes it extra difficult to utilize UI components other than a standard text input when creating options for navigation menu items.

I'd love to be able to utilize add_meta_box or something similar on nav_menu_items and I'm sure others in the community would benefit as well. Thoughts/Concerns/Corrections?

Change History (1)

#1 @stewarty
9 years ago

I just want to throw my hat in and say this would be great to get resolved as well.

I don't think we need to go as far a a full add_meta_box style API but even some filters in the form to be ale to manipulate the HTML output would be great.

Here is another very old example of how this has been done - https://gist.github.com/westonruter/3802459

Note: See TracTickets for help on using tickets.