Merge pull request #4912 from whatthefork/master

Update abstract-wc-product.php
This commit is contained in:
Mike Jolley 2014-02-24 15:28:23 +00:00
commit 373c35d7e8
1 changed files with 2 additions and 1 deletions

View File

@ -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 );
} }
/** /**