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.


Top ↑

Return Return

(string)


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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