Following Update WooCommerce product stock from csv
How do I modify the code if the SKU is not a product SKU but a product variant SKU? So how do I update the stock of a product variant if I only know the SKU of the variant? There is no wc_get_variant_id_by_sku...