WP_Admin_Bar::_get_node()protectedWP 3.3.0

Method of the class: WP_Admin_Bar{}

No Hooks.

Return

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 6.6.2

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

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

	if ( isset( $this->nodes[ $id ] ) ) {
		return $this->nodes[ $id ];
	}
}