WC_Cart::set_cart_contents
Sets the contents of the cart.
Метод класса: WC_Cart{}
Хуков нет.
Возвращает
null. Ничего (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 10.9.4
public function set_cart_contents( $value ) {
$this->cart_contents = (array) $value;
}