wp_edit_nav_menu_walker filter allows you to change the Walker class used when adding menu items.
It was added in 3.4.
wp_edit_nav_menu_walker accepts 2 arguments:
$classThe Walker class to use when adding menu items. Default is ‘Walker_Nav_Menu_Edit’
$menu_idThe menu id. Uses the value of
The following example changes the Walker class used when adding new menu items. Note: This example does not include the custom Walker class, it’s just an example to demonstrate how to tell WordPress to use your class instead of
View the code example on Gist.Have a suggested improvement? You can fork the Gist and comment back with the link. If all is agreeable, I’ll merge in your changes. Crowd-sourced documentation FTW!