WC_Product_Variation::get_attribute_summary()
Get attribute summary.
By default, attribute summary contains comma-delimited 'attribute_name: attribute_value' pairs for all attributes.
Метод класса: WC_Product_Variation{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_Product_Variation = new WC_Product_Variation(); $WC_Product_Variation->get_attribute_summary( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Список изменений
С версии 3.6.0 | Введена. |
Код WC_Product_Variation::get_attribute_summary() WC Product Variation::get attribute summary WC 8.7.0
public function get_attribute_summary( $context = 'view' ) { return $this->get_prop( 'attribute_summary', $context ); }