The Code:
- The code was added to a blank file called s2-auto-login.php
- This file was placed into the folder: /wp-content/mu-plugins/
- Not sure if this new plugin needs to be manually activated anywhere? But i assume not and should work automatically?
What Happens:
A user signups with no issue. We just want it to redirect to home page and autologin in completion.
S2Member is set to allow users to create their own passwords.
My Setup:
My register page is hard coded and uses this inserting the short code for the form (demo site is no the actual site):
<div id="Registration-s2Box">
<?php echo do_shortcode('[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="" desc="" custom="www.demosite.com" tp="0" tt="D" captcha="clean" success="http://www.demosite.com/your-registration-is-complete" /]'); ?>