WC_REST_Orders_V2_Controller::filter_writable_props()
Only return writable props from schema.
Method of the class: WC_REST_Orders_V2_Controller{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->filter_writable_props( $schema );
- $schema(array) (required)
- Schema.
WC_REST_Orders_V2_Controller::filter_writable_props() WC REST Orders V2 Controller::filter writable props code WC 9.2.3
protected function filter_writable_props( $schema ) { return empty( $schema['readonly'] ); }