WordPress – wc_get_products not returning all products – how do I trigger to fetch all?
I am having the following code: $args = array( 'limit' => -1, // Attempt to fetch all products 'return' => 'ids' // Fetch only IDs to optimize performance; remove this to get full product objects ); $product_ids = wc_get_products($args); echo…