Skip to content

Instantly share code, notes, and snippets.

@thenbrent
Created November 15, 2012 23:15
Show Gist options
  • Save thenbrent/4082249 to your computer and use it in GitHub Desktop.
Save thenbrent/4082249 to your computer and use it in GitHub Desktop.
Fix WC Subscriptions coupon bug
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