WordPress meta_query through Products variation stock

by Awan   Last Updated June 12, 2019 03:08 AM

I have WooCommerce variable products and a filter which is filtering products based on variation attributes. I have variation attribute depth which has numeric value (from 1 to 20) and the filter is working fine. But I want to display In Stock variations only On the other hand it is displaying all products including out of stock selected depth value (variation). So I want to hide product which will have selected depth value but no stock.

Can I query through Products variation stock ?

Related Questions

Updated December 29, 2017 22:08 PM

Updated September 24, 2018 20:08 PM

Updated December 20, 2018 23:08 PM

Updated February 07, 2019 18:08 PM

Updated December 07, 2017 21:08 PM