WC_Product::is_shipping_taxable
Returns whether or not the product shipping is taxable.
Method of the class: WC_Product{}
No Hooks.
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->is_shipping_taxable();
WC_Product::is_shipping_taxable() WC Product::is shipping taxable code WC 10.7.0
public function is_shipping_taxable() {
return $this->needs_shipping() && ( $this->get_tax_status() === ProductTaxStatus::TAXABLE || $this->get_tax_status() === ProductTaxStatus::SHIPPING );
}