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_find_one_matching_schema, rest_find_any_matching_schema, rest_find_matching_pattern_property_schema, rest_validate_value_from_schema, get_allowed_mime_types

Top Google Results

User discussions

wpseek mobile