• Resolved jbkeefer

    (@jbkeefer)


    I have a number of sites running TML that when user clicks registration they all go to primary site that then registers users across the network of sites.

    Since I have users coming from different sites, I need to inform them about what they are signing up for. I plan to make a registration page to address that.

    My problem arises after registration. After some thought I want to redirect to a page that tells user to check their email, show all the branded sites they now have access to with links to the corresponding sites.

    The redirect add-on to TML does not appear to provide a link after registration and I have looked at the wordpress settings, as well.

    I did some searches and could not find a script. Only thing I found were a couple plugins: peters login redirect and another themed login plugin…perhaps an add_action on user_register hook would suffice (not sure if that works, can’t find example)?

    Any suggestions?

    https://wordpress.org/plugins/theme-my-login/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jbkeefer

    (@jbkeefer)

    Attempts to use:

    function do_registration_redirect() {
    return home_url( ‘/all-access/’ );
    }

    add_filter( ‘registration_redirect’, ‘do_registration_redirect’ );

    Unsuccessful

    Checking codex to see if this is valid hook

    Plugin Author Jeff Farthing

    (@jfarthing84)

    The filter registration_redirect is what you’re looking for. That should work.

    Hi!

    Please help me too, if I want to redirect my visitors after registration (and only after registration), what should i do?

    What code and where should I implement?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    The same code that @jbkeefer posted should work. If you’re using the User Moderation module, you’ll need to set a priority higher than 100 to make it work.

    Thread Starter jbkeefer

    (@jbkeefer)

    I was unable to get it to work with that hook.

    Put it on back burner and will be back from vacation this week to give it another try with modified priority.

    Thats good news!

    Jamie

    I found a drity hack way to redirect a user to any page after registration done via Theme My Login ( TML ) plugin.

    in the wp-content/plugins/theme-my-login/templates/registration-form.php, look for:
    <input type="hidden" name="redirect_to" value="<?php$template->the_redirect_url( ‘register’ ); ?>” />`

    here replace $template->the_redirect_url( 'register' ) with echo('www.example.com/whatever.php');

    and then Theme My Login redirects to your preferred page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect to Page after registration’ is closed to new replies.