rest_handle_multi_type_schema


rest_handle_multi_type_schema ( $value, $args, $param = '' )

Parameters:
  • (mixed) value The value to check.
  • (array) args The schema array to use.
  • (string) param The parameter name, used in error messages.
Returns:
  • (string)
Defined at:

Description

Handles getting the best type for a multi-type schema.This is a wrapper for [\rest_get_best_type_for_value()](../namespaces/default.html#function_rest_get_best_type_for_value) that handles backward compatibility for schemas that use invalid types.

Related Functions

rest_validate_value_from_schema, get_allowed_mime_types, rest_handle_doing_it_wrong, rest_sanitize_value_from_schema, rest_handle_options_request

Top Google Results

User discussions

wpseek mobile