WP_Admin_Bar::get_node()publicWP 3.3.0

Gets a node.

Method of the class: WP_Admin_Bar{}

No Hooks.

Return

Object|null. Node.

Usage

$WP_Admin_Bar = new WP_Admin_Bar();
$WP_Admin_Bar->get_node( $id );
$id(string) (required)
-

Changelog

Since 3.3.0 Introduced.

WP_Admin_Bar::get_node() code WP 6.6.2

final public function get_node( $id ) {
	$node = $this->_get_node( $id );
	if ( $node ) {
		return clone $node;
	}
}