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