WC_Product_Variation::get_attribute_summary()
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() WC Product Variation::get attribute summary code WC 9.5.1
public function get_attribute_summary( $context = 'view' ) { return $this->get_prop( 'attribute_summary', $context ); }