rest_are_values_equal
rest_are_values_equal ( $value1, $value2 )
Parameters:- (mixed) value1 The first value to check.
- (mixed) value2 The second value to check.
Returns:- (bool) True if the values are equal or false otherwise.
Defined at: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Checks the equality of two values, following JSON Schema semantics.Property order is ignored for objects.
Values must have been previously sanitized/coerced to their native types.