rest_validate_array_contains_unique_items
rest_validate_array_contains_unique_items ( $input_array )
Parameters:- (array) input_array The array to check.
Returns:- (bool) True if the array contains unique items, false otherwise.
Defined at: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Checks if an array is made up of unique items.