W3cubDocs

/WordPress

WP_Admin_Bar::_get_node( string $id )

Parameters

$id

(string) (Required)

Return

(object|void)

Source

File: wp-includes/class-wp-admin-bar.php

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

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

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_admin_bar/_get_node