Skip to content
Browse files

use rcp_set_status() and set priority to 9

  • Loading branch information...
1 parent 28e40da commit 629d5d6b146329107f46bdb8bb1a20b2e8a46be6 @pippinsplugins pippinsplugins committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 includes/class-redeem-gift.php
View
5 includes/class-redeem-gift.php
@@ -3,7 +3,7 @@
class CGC_RCP_Redeem_Gift {
public function __construct() {
- add_action( 'init', array( $this, 'process_gift_redemption' ) );
+ add_action( 'init', array( $this, 'process_gift_redemption', 9 ) );
}
public function process_gift_redemption() {
@@ -60,8 +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 );
- update_user_meta( get_current_user_id(), 'rcp_status', 'active' );
- //rcp_set_status( get_current_user_id(), 'active' );
+ rcp_set_status( get_current_user_id(), 'active' );
wp_redirect( home_url( 'redeem-thanks' ) ); exit;

0 comments on commit 629d5d6

Please sign in to comment.
Something went wrong with that request. Please try again.