rest_get_best_type_for_value


rest_get_best_type_for_value ( $value, $types )

Parameters:
  • (mixed) value The value to check.
  • (array) types The list of possible types.
Returns:
  • (string) The best matching type, an empty string if no types match.
Defined at:

Description

Gets the best type for a value.

Related Functions

rest_get_route_for_term, rest_get_server, rest_get_route_for_post, get_post_custom_values, rest_stabilize_value

Top Google Results

User discussions

wpseek mobile