menus – Hook or callback when wp_nav_menu() has completed
Question
I am modifying the $output of wp_nav_menu()
using a custom walker, and I need to run a function after the final closing </ul>
of the entire menu. I can only see the following methods available:
start_lvl() // Runs when a child menu is started
end_lvl() // Runs when a child menu is completed
start_el() // Runs when a menu item is started
end_el() // Runs when a menu item is completed
I can’t find anything that runs when the top level menu is completed. Is this possible?
0
2 years
2022-04-26T16:43:41-05:00
2022-04-26T16:43:41-05:00 0 Answers
0 views
0
Leave an answer