Used By
Used By | Description |
---|---|
wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::validate() | Validates an input. |
Validates a Customize setting value.
Plugins should amend the $validity
object via its WP_Error::add()
method.
The dynamic portion of the hook name, $this->ID
, refers to the setting ID.
(WP_Error) Filtered from true
to WP_Error
when invalid.
(mixed) Value of the setting.
(WP_Customize_Setting) WP_Customize_Setting instance.
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_validate_this-id