rest_get_best_type_for_value
rest_get_best_type_for_value ( $value, $types )
Parameters:- (mixed) value The value to check.
- (string[]) types The list of possible types.
Returns:- (string) The best matching type, an empty string if no types match.
Defined at: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Gets the best type for a value.