WC_Cart::set_removed_cart_contents()publicWC 3.2.0

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 8.7.0

public function set_removed_cart_contents( $value = array() ) {
	$this->removed_cart_contents = (array) $value;
}