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