Woocommerce – Get products by array of ids

Question

I have an array of product ids, I need to get product objects. I have tried using wc_get_products([‘include’ => $ids]), but this obviously work only for external products.

Thanks)

0
Иван 4 weeks 2021-11-02T11:35:09-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse