WordPress at a glance
функция не описана

WP_Customize_Widgets::selective_refresh_init() public WP 4.5.0

Adds hooks for selective refresh.

It's a method of the class: WP_Customize_Widgets{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_Customize_Widgets = new WP_Customize_Widgets();
$WP_Customize_Widgets->selective_refresh_init();

Changelog

Since 4.5.0 Introduced.

Код WP_Customize_Widgets::selective_refresh_init() WP 5.5.1

<?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( 'wp_kses_allowed_html', array( $this, 'filter_wp_kses_allowed_data_attributes' ) );
	add_action( 'dynamic_sidebar_before', array( $this, 'start_dynamic_sidebar' ) );
	add_action( 'dynamic_sidebar_after', array( $this, 'end_dynamic_sidebar' ) );
}