CartItemSchema::format_variation_data( array $variation_data, WC_Product $product )

Format variation data, for example convert slugs such as attribute_pa_size to Size.


Description Description


Parameters Parameters

$variation_data

(Required) Array of data from the cart.

$product

(Required) Product data.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.