WC_Product_Variation_Data_Store_CPT::generate_attribute_summary( WC_Product_Variation $product )
Generates attribute summary for the variation.
Description Description
Attribute summary contains comma-delimited ‘attribute_name: attribute_value’ pairs for all attributes.
Parameters Parameters
- $product
-
(Required) Product variation to generate the attribute summary for.
Return Return
(string)
Source Source
File: includes/data-stores/class-wc-product-variation-data-store-cpt.php
protected function generate_attribute_summary( $product ) { return wc_get_formatted_variation( $product, true, true ); }
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |