“Extending” Wordpress to offer bootstrap 5, vertical, accordion menu that is parent/child aware to depth 2
5 min readMay 27, 2021
Wordpress comes with wp_get_nav_menu_items function that suffers from two major limitations:
- It is limited to depth 1 in determining the parent/child relationship
- It does not -directly- provide the information if a submenu item is a parent to another (sub)…