customize_sanitize_{$this->id} WordPress Filter Hook
This hook allows you to modify the value of a setting before it is sanitized. Arguments: $value - The value of the setting. $setting - The WP_Customize_Setting instance. Returns: The sanitized value.
apply_filters( "customize_sanitize_{$this->id}", mixed $value , WP_Customize_Setting $setting ) #
Filters a Customize setting value in un-slashed form.
Parameters
- $value
(mixed)Value of the setting.
- $setting
(WP_Customize_Setting)WP_Customize_Setting instance.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |