WP_Admin_Bar::_get_node

Advertisement

Syntax Syntax

WP_Admin_Bar::_get_node( string $id )

Parameters Parameters

$id

(Required)

Return Return

(object|void)

Source 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 ];
		}
	}

Advertisement

Advertisement

Leave a Reply