Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LookupDataStore::get_variations_of( WC_Product_Variable $product )
Get the variations of a given variable product.
Description Description
Parameters Parameters
- $product
-
(Required) The product to get the variations for.
Return Return
(array) An array of WC_Product_Variation objects.
Source Source
File: src/Internal/ProductAttributesLookup/LookupDataStore.php