WC_Cart::get_tax_price_display_mode
Returns 'incl' if tax should be included in cart, otherwise returns 'excl'.
Метод класса: WC_Cart{}
Хуков нет.
Возвращает
string.
Использование
$WC_Cart = new WC_Cart(); $WC_Cart->get_tax_price_display_mode();
Код WC_Cart::get_tax_price_display_mode() WC Cart::get tax price display mode WC 11.3.0
public function get_tax_price_display_mode() {
if ( $this->get_customer() && $this->get_customer()->get_is_vat_exempt() ) {
return TaxDisplayMode::EXCLUSIVE;
}
return get_option( 'woocommerce_tax_display_cart' );
}