rest_default_additional_properties_to_false
rest_default_additional_properties_to_false ( $schema )
Parameters:- (array) schema The schema to modify.
Returns:- (array) The modified schema.
Defined at:Change Log: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Sets the "additionalProperties" to false by default for all object definitions in the schema.