WP_Admin_Bar::_render_group

Advertisement

Syntax Syntax

WP_Admin_Bar::_render_group( object $node )

Parameters Parameters

$node

(Required)

Source Source

File: wp-includes/class-wp-admin-bar.php

		} else {
			$class = '';
		}

		echo "<ul id='" . esc_attr( 'wp-admin-bar-' . $node->id ) . "'$class>";
		foreach ( $node->children as $item ) {
			$this->_render_item( $item );
		}
		echo '</ul>';
	}

	/**
	 * @param object $node
	 */
	final protected function _render_item( $node ) {
		if ( 'item' !== $node->type ) {
			return;
		}

		$is_parent             = ! empty( $node->children );
		$has_link              = ! empty( $node->href );

Advertisement

Advertisement

Leave a Reply