WC_Product_Variation::get_attribute_summary()publicWC 3.6.0

Get attribute summary.

By default, attribute summary contains comma-delimited 'attribute_name: attribute_value' pairs for all attributes.

Method of the class: WC_Product_Variation{}

No Hooks.

Return

String.

Usage

$WC_Product_Variation = new WC_Product_Variation();
$WC_Product_Variation->get_attribute_summary( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 3.6.0 Introduced.

WC_Product_Variation::get_attribute_summary() code WC 8.7.0

public function get_attribute_summary( $context = 'view' ) {
	return $this->get_prop( 'attribute_summary', $context );
}