rest_validate_value_from_schema
rest_validate_value_from_schema ( $value, $args, $param = '' )
Parameters:- (mixed) value The value to validate.
- (array) args Schema array to use for validation.
- (string) param The parameter name, used in error messages.
Returns:Defined at:Change Log: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Validate a value based on a schema.