WordPress at Your Fingertips
function is not described

WC_Cart::get_tax_price_display_mode() public WC 1.0

Returns 'incl' if tax should be included in cart, otherwise returns 'excl'.

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

No Hooks.

Return

String.

Usage

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

Code of WC_Cart::get_tax_price_display_mode() WC 5.7.1

public function get_tax_price_display_mode() {
	if ( $this->get_customer() && $this->get_customer()->get_is_vat_exempt() ) {
		return 'excl';
	}

	return get_option( 'woocommerce_tax_display_cart' );
}