Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Call update_user_meta() instead of rcp_set_status()

  • Loading branch information...
commit 28e40da5b825cee804153175cdb4fc586f852dc3 1 parent f757bde
@pippinsplugins pippinsplugins authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  includes/class-redeem-gift.php
View
3  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;
Please sign in to comment.
Something went wrong with that request. Please try again.