How to pass a language parameter to wp_nav_menu ?
-
Hello and thank you for the awesome plug-in.
I have a menu location set up and I need to gather menu items for each existing language to serve them up as JSON.I am using:
$term = wp_nav_menu(array(‘theme_location’ => ‘my-location’));
$menu_id = $term->term_id;
$menu_items = wp_get_nav_menu_items($menu_id);This way I only get the menu in the main language.
How do I pass a language parameter over to wp_nav_menu ?Thanks!
M.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to pass a language parameter to wp_nav_menu ?’ is closed to new replies.