WP_Admin_Bar::_render_container()protectedWP 3.3.0

Method of the class: WP_Admin_Bar{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->_render_container( $node );
$node(object) (required)
-

Changelog

Since 3.3.0 Introduced.

WP_Admin_Bar::_render_container() code WP 6.6.2

final protected function _render_container( $node ) {
	if ( 'container' !== $node->type || empty( $node->children ) ) {
		return;
	}

	echo '<div id="' . esc_attr( 'wp-admin-bar-' . $node->id ) . '" class="ab-group-container">';
	foreach ( $node->children as $group ) {
		$this->_render_group( $group );
	}
	echo '</div>';
}