WC_Cart::set_cart_contents()
Sets the contents of the cart.
Метод класса: WC_Cart{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->set_cart_contents( $value );
- $value(массив) (обязательный)
- Cart array.
Код WC_Cart::set_cart_contents() WC Cart::set cart contents WC 7.5.1
public function set_cart_contents( $value ) { $this->cart_contents = (array) $value; }