• Resolved d

    (@dnicinski)


    We have the same registration form on all our portfolio items. And we have the
    Enable User Verification on and the users are receiving the email with the message “Your account is not activated yet. Please follow this link to activate your account for TrailCard Resources: {{verification_link}}”

    How can we have the user be redirected back to the portfolio item they selected instead of the one Account Verification Page with the [erforms_account_verification] shortcode on it?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello @dnicinski,

    Currently we do not have an option to redirect user from verification page.
    We will release a version providing an internal hook which you can call and specify the the link to redirect user after verification.

    Please drop us an email on [email protected] if you have any queries.

    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Hello @dnicinski,

    After further discussion with the technical team, I came to know that there is already a hook which you can use to redirect users. You just have to register the hook within your theme’s functions.php. Here are the details:
    1. Hook name is “erf_user_account_verified”. To register a function you can use below code:
    add_action(‘erf_user_account_verified’,’user_verified’);
    function user_verified($user){
    // Getting form details
    $form_id= isset($_REQUEST[‘erf_form’]) ? absint($_REQUEST[‘erf_form’]) : 0;
    $form= erforms()->form->get_form($form_id);
    if(empty($form)){
    _e(‘Form not found.’,’erforms’);
    return;
    }
    // Here you can define your redirection logic on the basis of form object or form id

    }

    Remember to configure Account Verification Page from Configure->User Account. Otherwise above system won’t work.

    Feel free to ask any questions.

    Thread Starter d

    (@dnicinski)

    Hi,

    Can you send examples of redirection logic that could be used in the function to redirect the user to back to the exact page they registered from please?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User Verification – verification_link – back to same page?’ is closed to new replies.