WC_Cart::get_coupon_discount_totalspublicWC 3.2.0

Return all calculated coupon totals.

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

Хуков нет.

Возвращает

array.

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

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

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

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

Код WC_Cart::get_coupon_discount_totals() WC 11.1.0

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