Validates a Customize setting value.
Description
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.
Parameters
$validityWP_Error- Filtered from
truetoWP_Errorwhen invalid. $valuemixed- Value of the setting.
$settingWP_Customize_Setting- WP_Customize_Setting instance.
Source
$validity = apply_filters( "customize_validate_{$this->id}", $validity, $value, $this );
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.