WordPress at Your Fingertips
function is not described

WC_Cart::get_total_ex_tax() public WC 1.0

Gets the total excluding taxes.

{} It's a 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();

Code of WC_Cart::get_total_ex_tax() WC 5.7.1

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() ) ) );
}