• Hi, I’m actually new to WordPress and pHp in general. I’m currently a student (so take it easy on me, because I’m bound to be doing things incorrectly).

    I currently have written 2 network plugins for use on an intranet site. What I want to do is place all of my custom plugins in 1 top-level admin menu. It’s easy enough if I do the following:

    add_menu_page('Plugin Title', 'Page Title', 'Capability', 'Menu Slug', 'Function');
            add_submenu_page('Parent Slug','Page Title','Menu Title','manage_options','Menu Slug','Function');
            add_submenu_page('Parent Slug','Page Title','Menu Title','manage_options','Menu Slug','Function');

    This gives me a nice little layout of the top menu, and 3 sub-menu links (1 being the same as the top).

    The problem I’m having is activating submenu items from the plugins themselves. Right now the two plugin are independent of eachother, and this third plugin is basically just a menu, with a list of active plugins for reference at the moment. Ideally I’d like to activate the menu links within the plugins so I don’t have to update the source code for the menu all the time. This way any plugins developed in the future could just hop on to that top-level menu item.

    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Multiple Plugin Submenu Items – 1 Top Level Network Admin Menu’ is closed to new replies.