WP_Customize_Widgets::end_dynamic_sidebar()
Finishes keeping track of the current sidebar being rendered.
Inserts a marker after widgets are rendered in a dynamic sidebar.
Метод класса: WP_Customize_Widgets{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Customize_Widgets = new WP_Customize_Widgets(); $WP_Customize_Widgets->end_dynamic_sidebar( $index );
- $index(int|строка) (обязательный)
- Index, name, or ID of the dynamic sidebar.
Список изменений
С версии 4.5.0 | Введена. |
Код WP_Customize_Widgets::end_dynamic_sidebar() WP Customize Widgets::end dynamic sidebar WP 6.6.2
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 ] ); } }