WC_Cart::get_coupon_discount_totals()publicWC 3.2.0

Return all calculated coupon totals.

Метод класса: WC_Cart{}

Хуков нет.

Возвращает

Массив.

Использование

$WC_Cart = new WC_Cart();
$WC_Cart->get_coupon_discount_totals();

Список изменений

С версии 3.2.0 Введена.

Код WC_Cart::get_coupon_discount_totals() WC 8.7.0

public function get_coupon_discount_totals() {
	return (array) $this->coupon_discount_totals;
}