How do I get the menu items (depth = 1) into an array?
wp_nav_menu outputs a formatted list with both ul and li elements. wp_list_pages also outputs a formatted list with both ul and li.
I just want to get the menu items (striped of tags) of depth one into an array.
How do I accomplish this?
See Question&Answers more detail:os