Merge pull request #5680 from helgatheviking/variation_is_purchasable
add filter to is_purchasable() for variations
This commit is contained in:
commit
0596204c22
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue