WC_Cart::__clone()
When cloning, ensure object properties are handled.
Contents
Description Description
These properties store a reference to the cart, so we use new instead of clone.
Source Source
File: includes/class-wc-cart.php
public function __clone() { $this->session = clone $this->session; $this->fees_api = clone $this->fees_api; }