remove_submenu_page
remove_submenu_page ( $menu_slug, $submenu_slug )
Parameters:- (string) menu_slug The slug for the parent menu.
- (string) submenu_slug The slug of the submenu.
Returns:- (array|false) The removed submenu on success, false if not found.
Defined at: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Removes an admin submenu.Example usage:
- `remove_submenu_page( 'themes.php', 'nav-menus.php' )`
- `remove_submenu_page( 'tools.php', 'plugin_submenu_slug' )`
- `remove_submenu_page( 'plugin_menu_slug', 'plugin_submenu_slug' )`