WP_Admin_Bar::_get_node( string $id ): object|null

In this article

Parameters

$idstringrequired

Return

object|null

Source

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

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

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

Changelog

VersionDescription
3.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.