WP_Admin_Bar::remove_node()publicWP 3.1.0

Remove a node.

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_node( $id );
$id(string) (required)
The ID of the item.

Changelog

Since 3.1.0 Introduced.

WP_Admin_Bar::remove_node() code WP 6.5.2

public function remove_node( $id ) {
	$this->_unset_node( $id );
}