Add variations to low stock query.
This commit is contained in:
parent
f4691827b1
commit
18a2dd01cb
|
@ -86,6 +86,7 @@ class WC_Admin_REST_Products_Controller extends WC_REST_Products_Controller {
|
|||
}
|
||||
if ( ! empty( $request['low_in_stock'] ) ) {
|
||||
$args['low_in_stock'] = $request['low_in_stock'];
|
||||
$args['post_type'] = array( 'product', 'product_variation' );
|
||||
}
|
||||
|
||||
return $args;
|
||||
|
|
Loading…
Reference in New Issue