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: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Removes a top-level admin menu.Example usage:
- `remove_menu_page( 'tools.php' )`
- `remove_menu_page( 'plugin_menu_slug' )`