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:

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' )`

Related Functions

remove_menu_page, add_submenu_page, remove_query_arg, add_menu_page, remove_image_size

Top Google Results

User discussions

wpseek mobile