Instantly share code, notes, and snippets.
Thanks for sharing this!
I just have one question: Is there a way to only affect the reverse order of the main menu and not the submenus?
@eliements You can do that by add_filter() right before you invoke wp_nav_menu() for the main menu and then remove_filter() immediately thereafter. Then it won't affect other menus.