Nav Menu Edit Walker per menu item type, not menu?
|Reported by:||GaryJ||Owned by:|
The assignment of a walker to show the menu items on the right side of the Menus screen is set per menu in wp_get_nav_menu_to_edit().
Ideally, it could be overridden per menu item type. That is, posttype, custom and taxonomy menu items can be handled by Walker_Nav_Menu_Edit, while a menu item (in the same menu) or 'foobar' can be handled by the start_el() from a different walker.
As things stand, I'd have to extend Walker_Nav_Menu_Edit, copy start_el(), and place the conditional code for what to output in there (in my case, strip out fields that aren't ever going to be used in my 'foobar' menu item type).