WP_Admin_Bar::_get_nodeprotectedWP 3.3.0

Method of the class: WP_Admin_Bar{}

No Hooks.

Returns

Object|null.

Usage

// protected - for code of main (parent) or child class
$result = $this->_get_node( $id );
$id(string) (required)
.

Changelog

Since 3.3.0 Introduced.

WP_Admin_Bar::_get_node() code WP 7.1

final protected function _get_node( $id ) {
	if ( $this->bound ) {
		return null;
	}

	if ( empty( $id ) ) {
		$id = 'root';
	}

	return $this->nodes[ $id ] ?? null;
}