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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…