WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

CartController::empty_cart() public WC 1.0

Empty cart contents.

{} It's a method of the class: CartController{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of CartController::empty_cart() WC 5.6.0

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