WC_Cart::set_coupon_discount_totals
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 Cart::set coupon discount totals WC 10.9.4
public function set_coupon_discount_totals( $value = array() ) {
$this->coupon_discount_totals = (array) $value;
}