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
See also
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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |