WC_Product::is_shipping_taxable()publicWC 1.0

Returns whether or not the product shipping is taxable.

Method of the class: WC_Product{}

No Hooks.

Return

true|false.

Usage

$WC_Product = new WC_Product();
$WC_Product->is_shipping_taxable();

WC_Product::is_shipping_taxable() code WC 8.7.0

public function is_shipping_taxable() {
	return $this->needs_shipping() && ( $this->get_tax_status() === 'taxable' || $this->get_tax_status() === 'shipping' );
}