WP_Admin_Bar::_get_node
Method of the class: WP_Admin_Bar{}
No Hooks.
Returns
Object|null.
Usage
// protected - for code of main (parent) or child class $result = $this->_get_node( $id );
- $id(string) (required)
- .
Changelog
| Since 3.3.0 | Introduced. |
WP_Admin_Bar::_get_node() WP Admin Bar:: get node code WP 6.9.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 ];
}
}