Created
November 15, 2012 23:15
-
-
Save thenbrent/4082249 to your computer and use it in GitHub Desktop.
Fix WC Subscriptions coupon bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find line #192 of class-wc-subscriptions-coupon.php which is currently this: | |
if( ! 'recurring_fee' == $coupon->type || ! 'sign_up_fee' == $coupon->type ) | |
and replace it with this: | |
if( ! in_array( $coupon->type, array( 'recurring_fee', 'sign_up_fee' ) ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment