WP_Customize_Manager::register_dynamic_settings()publicWP 4.2.0

Adds settings from the POST data that were not added with code, e.g. dynamically-created settings for Widgets

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

Хуков нет.

Возвращает

null. Ничего.

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

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->register_dynamic_settings();

Заметки

  • Смотрите: add_dynamic_settings()

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

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

Код WP_Customize_Manager::register_dynamic_settings() WP 6.0

public function register_dynamic_settings() {
	$setting_ids = array_keys( $this->unsanitized_post_values() );
	$this->add_dynamic_settings( $setting_ids );
}