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 {@see} that handles backward compatibility for schemas that use invalid types.

Related Functions

rest_find_one_matching_schema, rest_find_matching_pattern_property_schema, rest_validate_null_value_from_schema, rest_find_any_matching_schema, rest_validate_value_from_schema

Top Google Results

User discussions

wpseek mobile