WC_REST_Coupons_V1_Controller::filter_writable_props() protected WC 1.0
Only return writable props from schema.
{} It's a method of the class: WC_REST_Coupons_V1_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)
- -
Code of WC_REST_Coupons_V1_Controller::filter_writable_props() WC REST Coupons V1 Controller::filter writable props WC 5.0.0
protected function filter_writable_props( $schema ) {
return empty( $schema['readonly'] );
}