Automattic\WooCommerce\StoreApi\Utilities

CartController::empty_cart()publicWC 1.0

Empty cart contents.

Method of the class: CartController{}

No Hooks.

Return

null. Nothing (null).

Usage

$CartController = new CartController();
$CartController->empty_cart();

CartController::empty_cart() code WC 9.4.2

public function empty_cart() {
	$cart = $this->get_cart_instance();
	$cart->empty_cart();
}