This topic contains 9 replies, has 3 voices. Last updated by Cristián Lávaque 4 years, 10 months ago.
Topic Author | Topic |
---|---|
Posted: Thursday Feb 16th, 2012 at 2:11 pm #5391 | |
I’ve added code to mu-plugins to redirect successful subscribers (thanks to information found in this forum) to a page on my site. function dw_reg_confirm($user_id){ $confirm_page = “http://wpsite.com/membership-application-submitted”; wp_redirect($confirm_page); add_action(‘user_register’, ‘dw_reg_confirm’); The page that I’m redirecting to needs to know what level of member just subscribed. Is there a way to query values of the newly completed registration form after the user has been redirected to the success page? If not, how can I query registration form values from within the redirect function? (I’m thinking I could pass the values to the success page by tacking them on the back of the redirect URL). A related question is, “is there a way to get the name of the page that the registration is coming from?”. In other words, I have created role specific membership signup pages. Each page has it’s own PayPal Pro code to drive the registration process. Once registration is complete, the user is redirected to a success page via the mu-code above. I’m wondering if, within the function, there is a way to tell what page the user registerted from. I tried looking at $_SESSION variables but to no avail. Any suggestions would be appreciated. |