Core Function
View Source on Trac ↗ remove_submenu_page()
remove_submenu_page( mixed $menu_slug, mixed $submenu_slug ) Removes an admin submenu.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $menu_slug string | The slug for the parent menu. Required |
| $submenu_slug string | The slug of the submenu. Required |
Return Value
((array)
| false) The removed submenu on success, false if not found.
Function Information
Since Version
3.1.0
Source File
wp-admin/includes/plugin.php
Advertisement