WP_Admin_Bar::_render_group( object $node )
Description Description
Parameters Parameters
- $node
-
(object) (Required)
Source Source
File: wp-includes/class-wp-admin-bar.php
final protected function _render_group( $node ) { if ( $node->type == 'container' ) { $this->_render_container( $node ); return; } if ( $node->type != 'group' || empty( $node->children ) ) { return; } if ( ! empty( $node->meta['class'] ) ) { $class = ' class="' . esc_attr( trim( $node->meta['class'] ) ) . '"'; } else { $class = ''; } echo "<ul id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$class>"; foreach ( $node->children as $item ) { $this->_render_item( $item ); } echo '</ul>'; }
Expand full source code Collapse full source code View on Trac