WC_Shipping_Method::is_taxable
Whether or not we need to calculate tax on top of the shipping rate.
Method of the class: WC_Shipping_Method{}
No Hooks.
Returns
true|false
.
Usage
$WC_Shipping_Method = new WC_Shipping_Method(); $WC_Shipping_Method->is_taxable();
WC_Shipping_Method::is_taxable() WC Shipping Method::is taxable code WC 9.8.5
public function is_taxable() { return wc_tax_enabled() && ProductTaxStatus::TAXABLE === $this->tax_status && ( WC()->customer && ! WC()->customer->get_is_vat_exempt() ); }