WP_Admin_Bar::_get_node() WordPress Method
The WP_Admin_Bar::_get_node() method is used to get a specific node from the admin bar. This is useful if you need to get information about a specific node, or if you need to modify the behavior of a specific node. For example, you could use this method to get the URL of a specific node, or to change the title of a specific node.
WP_Admin_Bar::_get_node( string $id ) #
Parameters
- $id
(string)(Required)
Return
(object|void)
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 ]; } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |