The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

adding menu's (want opinions) (3 posts)

  1. bonnerl17
    Posted 8 years ago #

    I was wanting a little input from other people as to what I should do for admin menu's for my plugin. I'm trying to decide if I should use a top menu, or just put my three sub menus in their respective spots.
    Thus far there will be three sub menus. One pertaining to display options (I'd put it under presentation), one with options pertaining to who can do what (I'd put it under users), and the last one would be for uninstalling my plugin (and it would go under plugins). So which would ya'll prefer. I know I'd rather have them in one central location, since they are for one specific plugin, but is that ya'lls opinion?

  2. moshu
    Posted 8 years ago #

    Most plugins that have multiple admin pages keep them all in one single place. You should stick to that practice - otherwise you will spend all your time here in the forum answering questions about how to find your subpages... :)

  3. bonnerl17
    Posted 8 years ago #

    Ok thanks. Now a couple question about the codex.

    First, when you a top level menu does it create a submenu with it, and if it doesn't how do you send it too a submenu?
    Second question,
    "add_menu_page(__('Display Options'), __('User Info'), 10, 'User-Info/User-Info-options.php', 'User_Info_display');"
    Is that right?

Topic Closed

This topic has been closed to new replies.

About this Topic