WC_Cart::get_coupon_discount_totals()publicWC 3.2.0

Return all calculated coupon totals.

Method of the class: WC_Cart{}

No Hooks.

Return

Array.

Usage

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

Changelog

Since 3.2.0 Introduced.

WC_Cart::get_coupon_discount_totals() code WC 8.9.0

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