WC_Product_Variation::get_attribute_summary( string $context = 'view' )

Get attribute summary.


Description Description

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


Parameters Parameters

$context

(Optional) What the value is for. Valid values are view and edit.

Default value: 'view'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-product-variation.php

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

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.