remove_menu_page


remove_menu_page ( $menu_slug )

Parameters:
  • (string) menu_slug The slug of the menu.
Returns:
  • (array|false) The removed menu on success, false if not found.
Defined at:

Description

Removes a top-level admin menu.Example usage: - `remove_menu_page( 'tools.php' )` - `remove_menu_page( 'plugin_menu_slug' )`

Related Functions

remove_submenu_page, add_menu_page, remove_image_size, remove_meta_box, remove_rewrite_tag

Top Google Results

User discussions

wpseek mobile