I tried modifying s2member/includes/templates/returns/default-return.php by adding a JavaScript redirect that automatically transfers new subscribers to the register page:
- Code: Select all
<body onLoad="window.location.href='https://raamdev.com/wordpress/wp-login.php?action=register'">
However, this technique seems to work sporadically. Sometimes the registration page is displayed and other times a message appears that tells paying subscribers that Registration is disabled (I have Open Registration disabled, so only paying subscribers can register). Also, when this happens users never receive the Signup Confirmation email, so they essentially have no way of filling out the registration form.
I'm not sure if there's a better way of doing this or if I'm missing something with how the registration process works. Any help would be greatly appreciated.