GC_Customize_Widgets::end_dynamic_sidebar()

最后更新于:2021-11-27 10:06:27

GC_Customize_Widgets::end_dynamic_sidebar( int|string$index)

Finishes keeping track of the current sidebar being rendered.

参数

$index

(int|string) (Required) Index, name, or ID of the dynamic sidebar.

源文件

文件: gc-includes/class-gc-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 ] );
		}
	}