Tell us what you are trying to do?
Display stock level of all products, including variable ones in the front end
The shortcode [wpv-post-field name='_stock'] only returns stock for the product, not the selected variation. Is there a way of returning the variation stock?
For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/