Contents
The slug name for the parent menu, or the file name of a standard WordPress admin file that supplies the top-level menu in which you want to insert your submenu, or your plugin file if this submenu is going into a custom top-level menu.
The best way to present the user with such a screen is to create an administration menu item that allows the user to access that settings screen from all the Administration Screens. This article explains how plugin authors can add administration menus and screens.
How to nest an item under a submenu?
To further nest an item under a submenu, provide an array of parents. All of the options given to a standard menu item are also available to parent menu items. In the case of complex parent menu items, you should configure them in the Active Admin initializer. While the above works fine, what if you want a parent menu item with a dynamic name?
The function which is hooked in to handle the output of the page must check that the user has the required capability as well. (string) (Required) The slug name for the parent menu (or the file name of a standard WordPress admin page).
Can a parent page be a sub page?
One of the important feature of pages is that they can be hierarchical. This means that a page can become a parent page and has child pages (i.e sub-pages) under it. This allows you to group different pages together under one parent page.
(string) (Required) The slug name for the parent menu (or the file name of a standard WordPress admin page). (string) (Required) The text to be displayed in the title tags of the page when the menu is selected. (string) (Required) The text to be used for the menu.
How can I add a child page to a parent page?
Now an easy way to do this is by manually editing the parent page and add a list of links individually. However, you’ll need to manually edit the parent page each time you add or delete a child page.