WP_Customize_Widgets::end_dynamic_sidebar() WordPress Method
The WP_Customize_Widgets::end_dynamic_sidebar() method is used to end the display of a dynamic sidebar. This method is used internally by WordPress.
WP_Customize_Widgets::end_dynamic_sidebar( int|string $index ) #
Finishes keeping track of the current sidebar being rendered.
Description
Inserts a marker after widgets are rendered in a dynamic sidebar.
Parameters
- $index
(int|string)(Required)Index, name, or ID of the dynamic sidebar.
Source
File: wp-includes/class-wp-customize-widgets.php
public function end_dynamic_sidebar( $index ) { array_shift( $this->current_dynamic_sidebar_id_stack ); if ( ! $this->manager->selective_refresh->is_render_partials_request() ) { printf( "\n<!--dynamic_sidebar_after:%s:%d-->\n", esc_html( $index ), (int) $this->sidebar_instance_count[ $index ] ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |