WP_Admin_Bar::get_nodes()
Description Description
Return Return
(array|void)
Source 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 code Collapse full source code View on Trac
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Add a Span Before the Title of All Toolbar Items
This example adds an empty span with the class “my-class” before every Toolbar item’s title. Put this in your theme’s functions.php file.
Expand full source codeCollapse full source code
Display all Node ID’s of the Current Page in the Toolbar
This example will add all node ID’s on the current page to a top-level Toolbar item called “Node ID’s”. This is for developers who want to find out what the node ID is for a specific node. Put this in your theme’s functions.php file.
Expand full source codeCollapse full source code