WC_Cart::get_total_ex_tax()publicWC 1.0

Gets the total excluding taxes.

Method of the class: WC_Cart{}

Hooks from the method

Return

String. formatted price

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_total_ex_tax();

WC_Cart::get_total_ex_tax() code WC 8.7.0

public function get_total_ex_tax() {
	return apply_filters( 'woocommerce_cart_total_ex_tax', wc_price( max( 0, $this->get_total( 'edit' ) - $this->get_total_tax() ) ) );
}