WC_Product::is_taxable()
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() WC Product::is taxable code WC 9.7.1
public function is_taxable() { return apply_filters( 'woocommerce_product_is_taxable', $this->get_tax_status() === 'taxable' && wc_tax_enabled(), $this ); }