API to set theme menu
-
I have created a WordPress menu:
$menu_id = wp_create_nav_menu('MyMenu');and added menu items to it successfully. They show up in Appearance–>Menus properly.
At the bottom of the menu list is “Menu Settings” with two check boxes. The first is “Automatically add…” and the second, “Primary Menu (currently set to:)”.
I need the code to do what happens when the box is checked and I save the menu.
I am using Thesis-185 as the theme.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘API to set theme menu’ is closed to new replies.