WordPress at Your Fingertips
function is not described

WC_Product_Variation::get_attribute_summary() public WC 3.6.0

Get attribute summary.

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

{} It's a 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.

Code of WC_Product_Variation::get_attribute_summary() WC 5.6.0

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