Merge pull request #5680 from helgatheviking/variation_is_purchasable

add filter to is_purchasable() for variations
This commit is contained in:
Mike Jolley 2014-06-24 15:51:54 +01:00
commit 0596204c22
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ class WC_Product_Variation extends WC_Product {
else
$purchasable = parent::is_purchasable();
return $purchasable;
return apply_filters( 'woocommerce_variation_is_purchasable', $purchasable, $this );
}
/**