On this page
apply_filters( 'customize_dynamic_setting_class', string $setting_class, string $setting_id, array $setting_args )
Allow non-statically created settings to be constructed with custom WP_Customize_Setting subclass.
Parameters
$setting_classstring-
WP_Customize_Setting or a subclass.
$setting_idstring-
ID for dynamic setting, usually coming from
$_POST['customized']. $setting_argsarray-
WP_Customize_Setting or a subclass.
Source
File: wp-includes/class-wp-customize-manager.php. View all references
$setting_class = apply_filters( 'customize_dynamic_setting_class', $setting_class, $setting_id, $setting_args );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Manager::add_dynamic_settings() wp-includes/class-wp-customize-manager.php | Registers any dynamically-created settings, such as those from $_POST[‘customized’] that have no corresponding setting created. |
| WP_Customize_Manager::add_setting() wp-includes/class-wp-customize-manager.php | Adds a customize setting. |
Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_dynamic_setting_class