Add variations to low stock query.

This commit is contained in:
Jeff Stieler 2019-04-02 11:37:24 -06:00
parent f4691827b1
commit 18a2dd01cb
1 changed files with 1 additions and 0 deletions

View File

@ -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;