WP_Admin_Bar::get_nodes() WordPress Method
The WP_Admin_Bar::get_nodes() method can be used to get an array of all the nodes that have been added to the admin bar. This is useful for adding custom nodes or for modifying existing ones.
WP_Admin_Bar::get_nodes() #
Return
(array|void)
Source
File: wp-includes/class-wp-admin-bar.php
final public function get_nodes() { $nodes = $this->_get_nodes(); if ( ! $nodes ) { return; } foreach ( $nodes as &$node ) { $node = clone $node; } return $nodes; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |