W3cubDocs

/WordPress

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;
	}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_admin_bar/get_nodes