WP_Admin_Bar::remove_menu()
Removes a node from the admin bar.
Method of the class: WP_Admin_Bar{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Admin_Bar = new WP_Admin_Bar(); $WP_Admin_Bar->remove_menu( $id );
- $id(string) (required)
- The menu slug to remove.
Changelog
Since 3.1.0 | Introduced. |
WP_Admin_Bar::remove_menu() WP Admin Bar::remove menu code WP 6.6.1
public function remove_menu( $id ) { $this->remove_node( $id ); }