wp_update_nav_menu_item() to insert categories
After using the Chrome inspector on the “Appearance > Menus” categories panel I was able to sniff out the hidden form values that are passed when one manually adds a category to a custom menu via the wizard: <li> <label class=”menu-item-title”> <input type=”checkbox” class=”menu-item-checkbox” name=”menu-item[-11][menu-item-object-id]” value=”181″> Category One</label> <input type=”hidden” class=”menu-item-db-id” name=”menu-item[-11][menu-item-db-id]” value=”0″> <input type=”hidden” … Read more