Merge branch 'issue/31562-filter-coupons-by-status' of https://github.com/woocommerce/woocommerce into issue/31562-filter-coupons-by-status
This commit is contained in:
commit
f43ae46ff3
|
@ -26,7 +26,7 @@ class WC_REST_Coupons_Controller extends WC_REST_Coupons_V2_Controller {
|
|||
protected $namespace = 'wc/v3';
|
||||
|
||||
protected function prepare_objects_query($request) {
|
||||
$args = WC_REST_CRUD_Controller::prepare_objects_query( $request );
|
||||
$args = $this->prepare_objects_query( $request );
|
||||
|
||||
// Set post_status.
|
||||
$args['post_status'] = $request['status'];
|
||||
|
|
Loading…
Reference in New Issue