Filters a Customize setting value for use in JavaScript.
The dynamic portion of the hook name, $this->id, refers to the setting ID.
$valuemixed
$settingWP_Customize_Setting
$value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this );
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_sanitize_js_this-id