Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save james-allan/9d8cafe305a733a6ab971946955b381e to your computer and use it in GitHub Desktop.
Save james-allan/9d8cafe305a733a6ab971946955b381e to your computer and use it in GitHub Desktop.
class-wc-subscriptions-coupon #L587-L589
if ( 1 === self::get_coupon_limit( $coupon_code ) && 0 < $cart->get_coupon_discount_amount( $coupon_code ) ) {
$cart->remove_coupon( $coupon_code );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment