• Hello there. I have a WordPress network. When each new blog is created I have a few pages that are duplicated and their parent child structure is maintained. I do this in function.php by hooking into wpmu_new_blog. Next I need to populate the navigation for the new blog. I have 2 nav menus registered. Now I need to replicate, in code, creating the menu and adding items to the menu.

    I’m comfortable with PHP and MySQL so if I need to do this through queries that is fine but I am hoping there is a PHP function that I can hijack.

  • The topic ‘Create and populate a menu in PHP’ is closed to new replies.