I am working on a project and I came to the conclusion that I need to use 3 nav walkers:
- one for edit and
- 2 for HTML formatting
class MY_Walker_Nav_Menu_Edit extends Walker_Nav_Menu {} // this extends the menu item edit and adds some custom fields
next is
class MY_Walker_Nav_Menu extends Walker_Nav_Menu {} // this extends the HTML formatting in the front-end for main navigation and using the custom fields values
last one is
class MY_Walker_Nav_Menu_Footer extends Walker_Nav_Menu {} // same as the above just used for another menu in the footer
Currently all walkers in one file and it does not work.
I appreciate any suggestion.