WP_Admin_Bar::_get_node()
Метод класса: WP_Admin_Bar{}
Хуков нет.
Возвращает
Объект|null
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->_get_node( $id );
- $id(строка) (обязательный)
- -
Список изменений
С версии 3.3.0 | Введена. |
Код WP_Admin_Bar::_get_node() WP Admin Bar:: get node WP 6.1.1
final protected function _get_node( $id ) { if ( $this->bound ) { return; } if ( empty( $id ) ) { $id = 'root'; } if ( isset( $this->nodes[ $id ] ) ) { return $this->nodes[ $id ]; } }