rest_stabilize_value
rest_stabilize_value ( $value )
Parameters:- (mixed) value The value to stabilize. Must already be sanitized. Objects should have been converted to arrays.
Returns:- (mixed) The stabilized value.
Defined at: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Stabilizes a value following JSON Schema semantics.For lists, order is preserved. For objects, properties are reordered alphabetically.