Validation is skipped for unregistered settings or for values that are
already null since they will be skipped anyway. Sanitization is applied
to values that pass validation, and values that become null or WP_Error
after sanitizing are marked invalid.
public validate_setting_values ( array $setting_values, array $options = [] ) : array | ||
$setting_values | array | Mapping of setting IDs to values to validate and sanitize. |
$options | array | { Options. @type bool $validate_existence Whether a setting's existence will be checked. @type bool $validate_capability Whether the setting capability will be checked. } |
return | array | Mapping of setting IDs to return value of validate method calls, either `true` or `WP_Error`. |