Reply To: Free registration with ccaps
› Forums › General › Free registration with ccaps › Reply To: Free registration with ccaps
2016-01-09 at 18:56
#593
Cristián Lávaque
Keymaster
You could custom code that, bur remember that registering won’t automatically log the user in, so he’ll still be logged out when redirected to the URL after registration…
You could try using $_SERVER[‘HTTP_REFERER’] in the success attribute. http://php.net/reserved.variables.server
[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="default" desc="Signup now, it's Free!" custom="scrapbookcampus.com" tp="0" tt="D" captcha="clean" success="<?php echo $_SERVER['HTTP_REFERER']; ?>" /]
See also the documentation here, in case there’s something that could be useful to you: WP Admin -> s2Member -> PayPal Forms -> Custom Return -> Free Registration.