WC_Cart::set_removed_cart_contents
Set items removed from the cart.
Method of the class: WC_Cart{}
No Hooks.
Returns
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() WC Cart::set removed cart contents code WC 10.7.0
public function set_removed_cart_contents( $value = array() ) {
$this->removed_cart_contents = (array) $value;
}