Merge pull request #4912 from whatthefork/master
Update abstract-wc-product.php
This commit is contained in:
commit
373c35d7e8
|
@ -401,7 +401,8 @@ class WC_Product {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function is_taxable() {
|
public function is_taxable() {
|
||||||
return $this->tax_status == 'taxable' && get_option( 'woocommerce_calc_taxes' ) == 'yes' ? true : false;
|
$taxable = $this->tax_status == 'taxable' && get_option( 'woocommerce_calc_taxes' ) == 'yes' ? true : false;
|
||||||
|
return apply_filters( 'woocommerce_product_is_taxable', $taxable, $this );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue