Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirection after registration


  • Chuckie
    Participant

    @ajtruckle

    So we have the login/register widget.

    – User clicks Register
    – It then shows the custom Register page
    – Fill in details

    When a user clicks the “Register” button it then takes you to the default wordpress login page with a small message in the middle saying the registration is complete and to check email.

    This is confusing to the user and provides an inconsistent experience. Is it possible in any way to either redirect them to another custom page with the “results” or display it on our page own register page?

Viewing 17 replies - 1 through 17 (of 17 total)

  • Chuckie
    Participant

    @ajtruckle

    It was suggested:

    https://codex.wordpress.org/Plugin_API/Filter_Reference/registration_redirect

    But I tried:

    add_filter( ‘registration_redirect’, ‘my_redirect_home’ );
    function my_redirect_home( $registration_redirect ) {
    return ‘https://www.publictalksoftware.co.uk/registration-complete’;
    }

    I used the “Snippets” plugin and it did not seem to work.


    Chuckie
    Participant

    @ajtruckle

    This works:

    // Redirect Registration Page
    function my_registration_page_redirect()
    {
        global $pagenow;
     
        // Standard Registration Redirect
        if ( (strtolower($pagenow) == 'wp-login.php') && (strtolower($_GET['action']) == 'register') ) {
            wp_redirect( home_url('/register/') );
        }
      
        // Redirection after successful registration
        if ( (strtolower($pagenow) == 'wp-login.php') && (strtolower($_GET['checkemail']) == 'registered') ) {
            wp_redirect( home_url('/registration-complete/') );
        }
    }
     
    add_filter( 'init', 'my_registration_page_redirect' );

    Robin W
    Moderator

    @robin-w

    great


    ericsims
    Participant

    @ericsims

    @ajtruckle Sorry for the dumb question, but which functions file did you paste this into?

    I have been looking everywhere for a solution to this seemingly simple problem, but none of the plugins I have tried seem to work. I’m very hopeful about this one!


    Chuckie
    Participant

    @ajtruckle

    Hi @ericsims

    You should use a child theme, and then, have your functions file in the child theme folder. That is all you need to do.


    Robin W
    Moderator

    @robin-w

    or use

    Code Snippets


    ericsims
    Participant

    @ericsims

    Hallelujah, it worked! Thank you so much!! I ended up using the Code Snippets plugin because I’m not super comfortable with php, child themes, etc.


    Chuckie
    Participant

    @ajtruckle

    Great! I also use Code Snippets for some things too. Well done.


    justephen
    Participant

    @justephen

    Hi, I think I am over my head with forum/registration. Any user other than myself has to first register in order to make comments on the forum. When, they click “register”, there is no page set up for it.

    So, I believe I am a few steps away.

    1. Need to set up registration page.
    2. One they fill in the registration page, it needs to communicate that to the forum.
    3. Once that is communicated to the forum, they new user needs to be able make comments.

    If anyone takes my issue on, it may be more of a commitment than you would want.

    Thank you very very much,

    Justephen


    Chuckie
    Participant

    @ajtruckle

    Just use “Theme my Login”. It does everything.


    justephen
    Participant

    @justephen

    Where do I find “Theme my Login”?


    justephen
    Participant

    @justephen

    Sorry, here is my site. http://www.justephen.com


    Chuckie
    Participant

    @ajtruckle

    Here:

    Theme My Login

    You can install it from there.


    justephen
    Participant

    @justephen

    Thank you. I actually found it and installed and activated it. As I understand it, once activated it should add about six more pages to my site. Login, Registration, Password etc. None of those loaded. It did say, when I added plug in that the newest version has not been tested.

    Thanks


    Chuckie
    Participant

    @ajtruckle

    You create those pages. Each page has a short code it in. You then tell Theme My Login the links to each of those pages.


    momomoko
    Participant

    @momomoko

    Hi there,

    I have installed TML plugin and set up all links, but i still not received any email notifications after subscriptions tests ! I tried to search for the email settings but didnt found any tab . What did i miss ??

    Thx for your help


    sunnywilson09
    Participant

    @sunnywilson09

    Thank u so much for taking time to help.

Viewing 17 replies - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.
Skip to toolbar