wc_get_products some products are missing
-
Hi,
I’ve made a custom plugin witch feteched products with certain categories from my shop.
I noticed that some products are ignored, I don’t know why this happens, even if I remove the category argugment.
$products = wc_get_products( array( 'status' => 'publish', 'limit' => -1, 'category' => $this->get_option('filter_in_categories') ) );
This is my code, but problem also exist with this simple call
$products = wc_get_products( array( 'status' => 'publish', 'limit' => -1, 'category' => 'MyCategorySlug') );
I loaded the product with wc_get_product and checked the status and category and both are there.
Does anybody has an idea?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wc_get_products some products are missing’ is closed to new replies.