how can i get the product variation stock in woocommerce php code example
Example: get stock product woocommerce by id
$product_id = 1100;
$product = wc_get_product($product_id);
echo $product->get_stock_quantity();
$product_id = 1100;
$product = wc_get_product($product_id);
echo $product->get_stock_quantity();