WordPress at a glance
function is not described

WP_Admin_Bar::remove_menu() public WP 3.1.0

Remove a node from the admin bar.

{} It's a method of the class: WP_Admin_Bar{}

No Hooks.

Return

Null. Nothing.

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.

Code of WP_Admin_Bar::remove_menu() WP 5.5.1

<?php
public function remove_menu( $id ) {
	$this->remove_node( $id );
}