WC_Cart::set_removed_cart_contents() public WC 3.2.0
Set items removed from the cart.
{} Это метод класса: WC_Cart{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->set_removed_cart_contents( $value );
- $value(массив)
- Item array.
Список изменений
С версии 3.2.0 | Введена. |
Код WC_Cart::set_removed_cart_contents() WC Cart::set removed cart contents WC 5.0.0
public function set_removed_cart_contents( $value = array() ) {
$this->removed_cart_contents = (array) $value;
}