Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Cart::reset_totals()
Reset cart totals to the defaults. Useful before running calculations.
Description Description
Source Source
File: includes/class-wc-cart.php
private function reset_totals() { $this->totals = $this->default_totals; $this->fees_api->remove_all_fees(); do_action( 'woocommerce_cart_reset', $this, false ); }