Permalink
Browse files

Call update_user_meta() instead of rcp_set_status()

  • Loading branch information...
1 parent f757bde commit 28e40da5b825cee804153175cdb4fc586f852dc3 @pippinsplugins pippinsplugins committed Mar 6, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 includes/class-redeem-gift.php
@@ -60,7 +60,8 @@ 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' );
+ update_user_meta( get_current_user_id(), 'rcp_status', 'active' );
+ //rcp_set_status( get_current_user_id(), 'active' );
wp_redirect( home_url( 'redeem-thanks' ) ); exit;

0 comments on commit 28e40da

Please sign in to comment.