WC_Product::is_taxable()publicWC 1.0

Returns whether or not the product is taxable.

Method of the class: WC_Product{}

Hooks from the method

Return

true|false.

Usage

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

WC_Product::is_taxable() code WC 8.7.0

public function is_taxable() {
	return apply_filters( 'woocommerce_product_is_taxable', $this->get_tax_status() === 'taxable' && wc_tax_enabled(), $this );
}