WC_Product::is_taxablepublicWC 1.0

Returns whether or not the product is taxable.

Method of the class: WC_Product{}

Hooks from the method

Returns

true|false.

Usage

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

WC_Product::is_taxable() code WC 10.5.0

public function is_taxable() {
	/**
	 * Filters whether a product is taxable.
	 *
	 * @since 2.7.0
	 * @param bool          $taxable Whether the product is taxable.
	 * @param WC_Product    $product Product object.
	 */
	return apply_filters( 'woocommerce_product_is_taxable', $this->get_tax_status() === ProductTaxStatus::TAXABLE && wc_tax_enabled(), $this );
}