• Resolved joweb

    (@jowebnet)


    Hello,
    I need to redirect user to page ‘confirmation’ after he confirm the registration, know I have just page not found when the user confirm click in : {{home_url}}/login?ur_token={{email_token}}

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    HI @jowebnet,

    We suggest you do not make any changes to the token generator code {{home_url}}/login?ur_token={{email_token}}

    Please use the following code snippet if you want to redirect users after email confirmation.

    add_action( 'user_registration_check_token_complete', 'ur_auto_login_email_verification', 10, 2 );
    function ur_auto_login_email_verification( $user_id, $user_reg_successful ) {
    if( true === $user_reg_successful ) {
    $url = 'your redirection URL here';
    wp_safe_redirect( $url );
    die();
    }
    }

    If you do not know how to add the code snippets on your site, please check this documentation link https://docs.wpeverest.com/user-registration/docs/how-to-add-the-custom-code-snippet-on-your-site/.

    Regards!

    Thread Starter joweb

    (@jowebnet)

    Thank you!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @jowebnet,

    Glad to know the provided code snippet works according to your needs. If you have a moment to spare, we would really appreciate your review of our plugin. Please click on this link https://ww.wp.xz.cn/support/plugin/everest-forms/reviews and share your thoughts about our team and our plugin. It will encourage us to provide free support and regular update of the plugin.

    Regards!

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

The topic ‘Redirect after confirmation’ is closed to new replies.