WordPress.org

Forums

Move admin menu names (3 posts)

  1. rec19
    Member
    Posted 1 year ago #

    Hello

    I have plugins installed that show up as a parent menu on the left admin menu that I would like to put in the Settings tab.

    Can anyone give me an example, for instance, how you would move the comments tab in the settings tab so it says:
    General
    Writing
    Reading
    Discussion
    Media
    Permalinks
    Comments

    Maybe I can work out how to move things about from that example.

  2. bcworkz
    Member
    Posted 1 year ago #

    Take a look at Administration Menus. You will be removing the current menu page and adding it as a submenu page. Your callback to 'admin_menu' action must have a larger priority number than that used by the plugin otherwise there will not yet be a menu to remove.

    You'll need to examine the plugin add_menu_page() code to know how to add it as a submenu. A rather hacky alternative exists. Examine the structure of the global $menu using var_dump() or print_r(). It may be possible to assign the plugin's menu item in the array directly to the Settings menu item. Once assigned, unset the original item.

  3. rec19
    Member
    Posted 1 year ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags