WordPress at Your Fingertips
function is not described

WC_Cart::set_removed_cart_contents() public WC 3.2.0

Set items removed from the cart.

{} It's a method of the class: WC_Cart{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Cart::set_removed_cart_contents() WC 5.6.0

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