WC_Product::is_shipping_taxablepublicWC 1.0

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() code WC 9.8.5

public function is_shipping_taxable() {
	return $this->needs_shipping() && ( $this->get_tax_status() === ProductTaxStatus::TAXABLE || $this->get_tax_status() === ProductTaxStatus::SHIPPING );
}