GC_Customize_Widgets::selective_refresh_init()
最后更新于:2021-11-27 12:30:34
GC_Customize_Widgets::selective_refresh_init()Adds hooks for selective refresh.
源文件
文件: gc-includes/class-gc-customize-widgets.php
public function selective_refresh_init() {
if ( ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) {
return;
}
add_filter( 'dynamic_sidebar_params', array( $this, 'filter_dynamic_sidebar_params' ) );
add_filter( 'gc_kses_allowed_html', array( $this, 'filter_gc_kses_allowed_data_attributes' ) );
add_action( 'dynamic_sidebar_before', array( $this, 'start_dynamic_sidebar' ) );
add_action( 'dynamic_sidebar_after', array( $this, 'end_dynamic_sidebar' ) );
}