WC_Cart::get_removed_cart_contents()publicWC 3.2.0

Return items removed from the cart.

Method of the class: WC_Cart{}

No Hooks.

Return

Array.

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_removed_cart_contents();

Changelog

Since 3.2.0 Introduced.

WC_Cart::get_removed_cart_contents() code WC 8.6.1

public function get_removed_cart_contents() {
	return (array) $this->removed_cart_contents;
}