apply_filters( "customize_validate_{$this->id}", WP_Error $validity, mixed $value, WP_Customize_Setting $setting )

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.


Top ↑

Parameters

$validity WP_Error
Filtered from true to WP_Error when invalid.
$value mixed
Value of the setting.
$setting WP_Customize_Setting

Top ↑

Source

File: wp-includes/class-wp-customize-setting.php. View all references

$validity = apply_filters( "customize_validate_{$this->id}", $validity, $value, $this );


Top ↑

Changelog

Changelog
Version Description
4.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.