WC_Cart::display_prices_including_taxpublicWC 3.3.0

Return whether or not the cart is displaying prices including tax, rather than excluding tax.

Method of the class: WC_Cart{}

Hooks from the method

Returns

true|false.

Usage

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

Changelog

Since 3.3.0 Introduced.

WC_Cart::display_prices_including_tax() code WC 11.0.1

public function display_prices_including_tax() {
	/**
	 * Filter whether or not the cart is displaying prices including tax.
	 *
	 * @since 3.3.0
	 *
	 * @param bool $display_prices_including_tax Whether or not the cart is displaying prices including tax.
	 */
	return apply_filters( 'woocommerce_cart_' . __FUNCTION__, TaxDisplayMode::INCLUSIVE === $this->get_tax_price_display_mode() );
}