WP_Admin_Bar::_get_node

Advertisement

Syntax Syntax

WP_Admin_Bar::_get_node( string $id )

Parameters Parameters

$id

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?