Automattic\WooCommerce\StoreApi\Utilities
CartController::empty_cart()
Empty cart contents.
Method of the class: CartController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CartController = new CartController(); $CartController->empty_cart();
CartController::empty_cart() CartController::empty cart code WC 9.4.2
public function empty_cart() { $cart = $this->get_cart_instance(); $cart->empty_cart(); }