WP_Customize_Manager::register_dynamic_settings() WordPress Method

The register_dynamic_settings() method of the WP_Customize_Manager class allows you to dynamically register new settings for the Customizer. This is useful for settings that are generated dynamically, such as those based on the current theme or plugin settings.

WP_Customize_Manager::register_dynamic_settings() #

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


Description

Top ↑

See also


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More