On this page
apply_filters( "customize_sanitize_js_{$this->id}", mixed $value, WP_Customize_Setting $setting )
Filters a Customize setting value for use in JavaScript.
Description
The dynamic portion of the hook name, $this->id, refers to the setting ID.
Parameters
$valuemixed-
The setting value.
$settingWP_Customize_Setting-
WP_Customize_Setting instance.
Source
File: wp-includes/class-wp-customize-setting.php. View all references
$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_Customize_Setting::js_value() wp-includes/class-wp-customize-setting.php | Sanitize the setting’s value for use in JavaScript. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_sanitize_js_this-id