• Resolved ditout

    (@ditout)


    Hi,
    After a new user has fill his registration form, he will receive a verification email, and click it to confirm,
    How could I set up to redirect to my home page after having clicked the confirmation ?
    thank you for your help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @ditout

    Please try following code snippets:

    add_action( 'um_after_email_confirmation', function( $user_id ){
    	exit( wp_redirect( get_home_url() ) );
    }, 10, 1 );

    You can simply paste the codes into your theme’s functions.php file or use the code snippets plugin to add them to your site.

    Thread Starter ditout

    (@ditout)

    Hi @aswingiri,
    thanks for your reply,
    could you tell me precisely the position of your code snippets on my theme’s functions.php file ?
    just after <head> ?
    thanks a lot!

    Plugin Support Aswin Giri

    (@aswingiri)

    @ditout If you are not sure where to add it on functions.php, I suggest you install this plugin, create a new snippet just like a post and paste above codes in “code” input box.

    Thread Starter ditout

    (@ditout)

    Hi @aswingiri
    I added the following snippet :
    add_action( ‘um_after_email_confirmation’, function( $user_id ){
    exit( wp_redirect( get_home_url(mysite.com) ) );
    }, 10, 1 );

    on your plugin, but the syntax is wrong.
    https://si3.photorapide.com/invites/photos/2022/04/271x5m.jpg

    Plugin Support Aswin Giri

    (@aswingiri)

    Hello @ditout

    You don’t need to add your website address. If you just want to redirect to the home page, you can simply use exact same code as I have provided.

    Thread Starter ditout

    (@ditout)

    Hi @aswingiri
    the redirection is Ok, thank you,
    but it need my validation in dashboard. otherwise, the new user cannot open his login to fill his profile.
    can they go to the home page with login opened ?
    thank you so much !

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @ditout

    You can change the Login redirect in the User Roles settings. Please go to WP Admin > Ultimate Member > User Roles > Edit a Role > see “Login Options”.

    Thread Starter ditout

    (@ditout)

    Hi @ultimatemembersupport
    It’s not the problem of redirect,
    it need my activation on Dashboard–> Users –> Manage signups,
    after this activation, the new user will receive a new email, then he could fill his profile.
    compare with almost websites, after having clicked the activation of his email, the new user could immediately fill his profile. now my site is not in this case.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @ditout

    If you need to send the activation email, you need to use the WP Admin > Users > UM Action > Resend Activation Email. UM doesn’t send the activation email when you add/create a new user in WP-Admin > Users.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hey there!

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Redirect to home page after verification’ is closed to new replies.