WC_Cart::set_coupon_discount_totals() public WC 3.2.0
Sets the array of calculated coupon totals.
{} Это метод класса: WC_Cart{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->set_coupon_discount_totals( $value );
- $value(массив)
- Value to set.
Список изменений
С версии 3.2.0 | Введена. |
Код WC_Cart::set_coupon_discount_totals() WC Cart::set coupon discount totals WC 5.0.0
public function set_coupon_discount_totals( $value = array() ) {
$this->coupon_discount_totals = (array) $value;
}