WC_Shipping_Method::is_taxable()
Whether or not we need to calculate tax on top of the shipping rate.
Метод класса: WC_Shipping_Method{}
Хуков нет.
Возвращает
true|false
.
Использование
$WC_Shipping_Method = new WC_Shipping_Method(); $WC_Shipping_Method->is_taxable();
Код WC_Shipping_Method::is_taxable() WC Shipping Method::is taxable WC 8.7.0
public function is_taxable() { return wc_tax_enabled() && 'taxable' === $this->tax_status && ( WC()->customer && ! WC()->customer->get_is_vat_exempt() ); }