WP_Admin_Bar::_render_container() WordPress Method

The WP_Admin_Bar::_render_container() method is used to render the admin bar container. This includes the opening and closing tags, as well as the inner container div. This method is called by the WP_Admin_Bar::render() method.

WP_Admin_Bar::_render_container( object $node ) #


Parameters

$node

(object)(Required)


Top ↑

Source

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

	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>';
	}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.