Support » Fixing WordPress » Menu API to Set and Save Menu

  • I have written a plugin that dynamically creates several pages and generates a menu which is inserted into the existing menu. Everything works except last step.

    At the bottom of the Appearance->Menus panel, under “Menu Settings” there is a check box for the selected menu and a save button. I need to check the box and click save from within my PHP code.

    This does not appear to be a theme issue because I have the same issue regardless of the theme. What is the API to simply check the “Theme Locations” checkbox and click the “Save” button?

  • The topic ‘Menu API to Set and Save Menu’ is closed to new replies.