WC_Cart::get_total_ex_tax
Gets the total excluding taxes.
Method of the class: WC_Cart{}
Hooks from the method
Returns
String. formatted price
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->get_total_ex_tax();
WC_Cart::get_total_ex_tax() WC Cart::get total ex tax code WC 10.5.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() ) ) );
}