Permalink
Browse files

Set user to active once redeeming a code

  • Loading branch information...
1 parent 8a672b6 commit f757bde1366e92d2dd75c525a72839c67431ac25 @pippinsplugins pippinsplugins committed Mar 6, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 includes/class-redeem-gift.php
@@ -60,6 +60,7 @@ public function process_gift_redemption() {
update_user_meta( get_current_user_id(), 'rcp_subscription_level', $subscription );
update_user_meta( get_current_user_id(), 'rcp_expiration', $expiration );
+ rcp_set_status( get_current_user_id(), 'active' );
wp_redirect( home_url( 'redeem-thanks' ) ); exit;

0 comments on commit f757bde

Please sign in to comment.