GC_Admin_Bar::_get_node()

最后更新于:2021-11-26 09:09:41

GC_Admin_Bar::_get_node( string$id)

参数

$id

(string) (Required)

响应

(object|void)

源文件

文件: gc-includes/class-gc-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 ];
		}
	}