PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Post-Registration redirect

s2Member Plugin. A Membership plugin for WordPress®.

Post-Registration redirect

Postby TheKai » August 4th, 2011, 1:43 am

Is there a simple way to redirect a user to a "Thanks for registering, please check your email , blah blah" page?
Or, failing that, maybe just a simple popup message that says the same thing?

Thanks in advance.
User avatar
TheKai
Registered User
Registered User
 
Posts: 3
Joined: August 4, 2011

Re: Post-Registration redirect

Postby Cristián Lávaque » August 4th, 2011, 11:38 pm

You can use this hack to log the person in automatically right after registration. viewtopic.php?f=4&t=14211&p=29101#p29101
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Post-Registration redirect

Postby TheKai » August 5th, 2011, 12:25 am

Thanks for the tip. I did the following (more light weight, i think).

Just add this to functions.php

Code: Select all
    function __my_registration_redirect()
    {    
           return home_url
( '/pageName' );
    }
    add_filter( 'registration_redirect', '__my_registration_redirect' ); 
Last edited by Cristián Lávaque on August 5th, 2011, 10:11 pm, edited 2 times in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
TheKai
Registered User
Registered User
 
Posts: 3
Joined: August 4, 2011

Re: Post-Registration redirect

Postby Cristián Lávaque » August 5th, 2011, 1:27 am

Cool. I haven't tried that yet, did it work for you?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Post-Registration redirect

Postby TheKai » August 5th, 2011, 1:33 am

Yep. Works perfectly on my setup.
User avatar
TheKai
Registered User
Registered User
 
Posts: 3
Joined: August 4, 2011

Re: Post-Registration redirect

Postby Cristián Lávaque » August 5th, 2011, 10:10 pm

Excellent. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron