WordPress at Your Fingertips
function is not described

WC_Product_Variation_Data_Store_CPT::generate_attribute_summary() protected WC 3.6.0

Generates attribute summary for the variation.

Attribute summary contains comma-delimited 'attribute_name: attribute_value' pairs for all attributes.

{} It's a method of the class: WC_Product_Variation_Data_Store_CPT{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->generate_attribute_summary( $product );
$product(WC_Product_Variation) (required)
Product variation to generate the attribute summary for.

Changelog

Since 3.6.0 Introduced.

Code of WC_Product_Variation_Data_Store_CPT::generate_attribute_summary() WC 5.6.0

protected function generate_attribute_summary( $product ) {
	return wc_get_formatted_variation( $product, true, true );
}