From 192c74eee601a9c82b0a1cae99c72de0bc4fd7c8 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 7 Apr 2014 10:19:09 +0100 Subject: [PATCH] Remove post_parent so grouped simple products are also returned Fixes #5178 --- includes/api/class-wc-api-products.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/api/class-wc-api-products.php b/includes/api/class-wc-api-products.php index 7aacd6c258c..ec49ce0439c 100644 --- a/includes/api/class-wc-api-products.php +++ b/includes/api/class-wc-api-products.php @@ -234,8 +234,7 @@ class WC_API_Products extends WC_API_Resource { 'fields' => 'ids', 'post_type' => 'product', 'post_status' => 'publish', - 'post_parent' => 0, - 'meta_query' => array(), + 'meta_query' => array(), ); if ( ! empty( $args['type'] ) ) {