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:
  • (true|WP_Error)
Defined at:

Description

Validate a value based on a schema.

Related Functions

rest_sanitize_value_from_schema, rest_validate_request_arg, validate_user_form, get_date_from_gmt, validate_file_to_edit

Top Google Results

User discussions

wpseek mobile