Codex

Function Reference/add submenu page,

Contents

Description

Add a sub menu page

This function takes a capability which will be used to determine whether or not a page is included in the menu. The function which is hooked in to handle the output of the page must check that the user has the required capability as well.

Parameters

$parent_slug
(string) (required) The slug name for the parent menu (or the file name of a standard WordPress admin page)
Default: None
$page_title
(string) (required) The text to be displayed in the title tags of the page when the menu is selected
Default: None
$menu_title
(string) (required) The text to be used for the menu
Default: None
$capability
(string) (required) The capability required for this menu to be displayed to the user.
Default: None
$menu_slug
(string) (required) The slug name to refer to this menu by (should be unique for this menu)
Default: None
$function
(callback) (optional) The function to be called to output the content for this page.
Default:

Return Values

(string) 
bool

Source File

add_submenu_page() is located in wp-admin/includes/plugin.php