WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Widgets::register_settings() public WP 4.2.0

Inspects the incoming customized data for any widget settings, and dynamically adds them up-front so widgets will be initialized properly.

Это метод класса: WP_Customize_Widgets{}

Хуков нет.

Возвращает

Null. Ничего.

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

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

Список изменений

С версии 4.2.0 Введена.

Код WP_Customize_Widgets::register_settings() WP 5.5.1

wp-includes/class-wp-customize-widgets.php
<?php
public function register_settings() {
	$widget_setting_ids   = array();
	$incoming_setting_ids = array_keys( $this->manager->unsanitized_post_values() );
	foreach ( $incoming_setting_ids as $setting_id ) {
		if ( ! is_null( $this->get_setting_type( $setting_id ) ) ) {
			$widget_setting_ids[] = $setting_id;
		}
	}
	if ( $this->manager->doing_ajax( 'update-widget' ) && isset( $_REQUEST['widget-id'] ) ) {
		$widget_setting_ids[] = $this->get_setting_id( wp_unslash( $_REQUEST['widget-id'] ) );
	}

	$settings = $this->manager->add_dynamic_settings( array_unique( $widget_setting_ids ) );

	if ( $this->manager->settings_previewed() ) {
		foreach ( $settings as $setting ) {
			$setting->preview();
		}
	}
}