WC_API_Orders::get_variation_id()

Method: Given a product ID & API provided variations, find the correct variation ID to use for calculation We can’t just trust input from the API to pass a variation_id manually, otherwise you could pass the cheapest variation ID but provide other information so we have to look up the variation ID.

Source: includes/legacy/api/v2/class-wc-api-orders.php:968

Used by 1 function | Uses 2 functions