wp-includes/class-wp-customize-setting.php:20Customize Setting class.
Every hook that fires from inside WP_Customize_Setting, in the order it appears in the class, grouped by the method that fires it.
$managerWP_Customize_Managerpublic$idstringpublic$typestringpublic$capabilitystring|arraypublic$theme_supportsstring|string[]public$defaultstringpublic$transportstringpublic$validate_callbackcallablepublic$sanitize_callbackcallablepublic$sanitize_js_callbackcallablepublic$dirtyboolpublic$id_dataarrayprotected$is_previewedboolprotected$aggregated_multidimensionalsarrayprotected static$is_multidimensional_aggregatedboolprotected$_previewed_blog_idintprotected$_original_valuemixedprotected#[AllowDynamicProperties]class WP_Customize_Setting { /** * Customizer bootstrap instance. * * @since 3.4.0 * @var WP_Customize_Manager */ public $manager; /** * Unique string identifier for the setting. * * @since 3.4.0 * @var string */ public $id; /** * Type of customize settings. * * @since 3.4.0 * @var string */ public $type = 'theme_mod'; /** * Capability required to edit this setting. * * @since 3.4.0 * @var string|array */ public $capability = 'edit_theme_options'; /** * Theme features required to support the setting. * * @since 3.4.0 * @var string|string[] */ public $theme_supports = ''; /** * The default value for the setting. * * @since 3.4.0 * @var string */ public $default = ''; /** * Options for rendering the live preview of changes in Customizer. * * Set this value to 'postMessage' to enable a custom JavaScript handler to render changes to this setting * as opposed to reloading the whole page. * * @since 3.4.0 * @var string */ public $transport = 'refresh'; /** * Server-side validation callback for the setting's value. * * @since 4.6.0 * @var callable */ public $validate_callback = ''; /** * Callback to filter a Customize setting value in un-slashed form. * * @since 3.4.0 * @var callable */ public $sanitize_callback = ''; /** * Callback to convert a Customize PHP setting value to a value that is JSON serializable. *Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-customize-setting.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.