WC_Cart::set_coupon_discount_totals()publicWC 3.2.0

Sets the array of calculated coupon totals.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Cart = new WC_Cart();
$WC_Cart->set_coupon_discount_totals( $value );
$value(массив)
Value to set.
По умолчанию: array()

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

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

Код WC_Cart::set_coupon_discount_totals() WC 8.7.0

public function set_coupon_discount_totals( $value = array() ) {
	$this->coupon_discount_totals = (array) $value;
}