WP_Admin_Bar::remove_menu( string $id )
Remove a node from the admin bar.
Parameters
- $id
-
(string) (Required) The menu slug to remove.
Source
File: wp-includes/class-wp-admin-bar.php
public function remove_menu( $id ) { $this->remove_node( $id ); }
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_admin_bar/remove_menu