WC_Cart::set_removed_cart_contents()publicWC 3.2.0

Set items removed from the cart.

Method of the class: WC_Cart{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->set_removed_cart_contents( $value );
$value(array)
Item array.
Default: array()

Changelog

Since 3.2.0 Introduced.

WC_Cart::set_removed_cart_contents() code WC 8.7.0

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