Allow non-statically created settings to be constructed with custom WP_Customize_Setting subclass.
$setting_classstring$setting_idstring$setting_argsarraywp-includes/class-wp-customize-manager.php:3791WP_Customize_Manager::add_setting()wp-includes/class-wp-customize-manager.php:3851WP_Customize_Manager::add_dynamic_settings() * @since 4.2.0 * * @param string $setting_class WP_Customize_Setting or a subclass. * @param string $setting_id ID for dynamic setting, usually coming from `$_POST['customized']`. * @param array $setting_args WP_Customize_Setting or a subclass. */ $setting_class = apply_filters( 'customize_dynamic_setting_class', $setting_class, $setting_id, $setting_args ); $setting = new $setting_class( $this, $setting_id, $setting_args ); $this->add_setting( $setting ); $new_settings[] = $setting; }Introduced in 4.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.