Source
final public function get_nodes() {
$nodes = $this->_get_nodes();
if ( ! $nodes ) {
return;
}
foreach ( $nodes as &$node ) {
$node = clone $node;
}
return $nodes;
}
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
final public function get_nodes() {
$nodes = $this->_get_nodes();
if ( ! $nodes ) {
return;
}
foreach ( $nodes as &$node ) {
$node = clone $node;
}
return $nodes;
}
Version | Description |
---|---|
3.3.0 | Introduced. |
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.
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.