WC_Shipping_Method::is_taxable()publicWC 1.0

Whether or not we need to calculate tax on top of the shipping rate.

Method of the class: WC_Shipping_Method{}

No Hooks.

Return

true|false.

Usage

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->is_taxable();

WC_Shipping_Method::is_taxable() code WC 8.7.0

public function is_taxable() {
	return wc_tax_enabled() && 'taxable' === $this->tax_status && ( WC()->customer && ! WC()->customer->get_is_vat_exempt() );
}