WP_Admin_Bar::_render_group( object $node )


Parameters

$node object Required

Top ↑

Source

File: wp-includes/class-wp-admin-bar.php. View all references

final protected function _render_group( $node ) {
	if ( 'container' === $node->type ) {
		$this->_render_container( $node );
		return;
	}
	if ( 'group' !== $node->type || 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>';
}


Top ↑

Changelog

Changelog
Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.