CartController::get_variable_product_attributes( WC_Product $product )
Get product attributes from the variable product (which may be the parent if the product object is a variation).
Description Description
Parameters Parameters
- $product
-
(Required) Product being added to the cart.
Return Return
(array)
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php