Remove post_parent so grouped simple products are also returned

Fixes #5178
This commit is contained in:
Mike Jolley 2014-04-07 10:19:09 +01:00
parent 66a1b93fec
commit 192c74eee6
1 changed files with 1 additions and 2 deletions

View File

@ -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'] ) ) {