add_submenu_page()
add_submenu_page(
mixed $parent_slug,
mixed $page_title,
mixed $menu_title,
mixed $capability,
mixed $menu_slug,
mixed $callback = '',
mixed $position = null
) Adds a submenu page.
Parameters 6 required
| Name / Type | Description |
|---|---|
| string | $parent_slug The slug name for the parent menu (or the file name of a standard WordPress admin page). Required |
| string | $page_title The text to be displayed in the title tags of the page when the menu is selected. Required |
| $menu_title string | The text to be used for the menu. Required |
| $capability string | The capability required for this menu to be displayed to the user. Required |
| string | $menu_slug The slug name to refer to this menu by. Should be unique for this menu and only include lowercase alphanumeric, dashes, and underscores characters to be compatible with sanitize_key(). Required |
| $callback callable | Optional. The function to be called to output the content for this page. |
| (int | | float) $position Optional. The position in the menu order this item should appear. Required |