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)
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>'; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |