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:
  • (bool|WP_Error)
Defined at:
Change Log:
  • 4: .
  • 5: .
  • 5: .
  • 5: .
  • 5: .

Description

Validate a value based on a schema.

Related Functions

rest_sanitize_value_from_schema, rest_validate_request_arg, validate_user_form, rest_stabilize_value, validate_file_to_edit

Top Google Results

User discussions

wpseek mobile