• Resolved fahmineo

    (@fahmineo)


    Hi Author.
    And Anyone here.

    Would you help me about this:

    I need Required Email Activation for new user and the also the user redirect to some page, example: “Thank You Page” so I write instruction in it.

    How to do that?

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    This is not possible using the settings as the user will be redirected to the login page on click of the activation link and the user will redirect after successful login to the redirect setting set for the login form in the settings.

    Regards,

    Thread Starter fahmineo

    (@fahmineo)

    Hi Patrick,

    Glad for your respond.

    Maybe I’m poor in conveying what I mean.
    Or I don’t understand your explanation.

    I thought it would be better if I illustrated the process I needed:

    “Tony registers on the website. After clicking the” Create Account “button, Tony will automatically be directed to a page that contains information to open an email and click the activation link.”

    Why do I need this?
    Because on the Registration Form for the current UsersWP Plugin, when Tony clicked the “Create Account” button and the Form didn’t disappear. The Registration Form still displays the value in its field. I am afraid that this condition will confuse some people. Although a green background message appears after clicking the button.

    Best regards

    Hi,

    For email activation action in the registration form, we only display a message and no redirect is done but we have a hook that can be used for processing after successful registration is done. Try using the following code in your functions.php file or using the Code Snippet plugin:

    add_action('uwp_after_process_register', 'uwp_after_process_register_cb');
    function uwp_after_process_register_cb(){
    	if ( wp_doing_ajax() ) {
    	    return;
    	}
    
        $redirect_to = home_url( '/test-page/' );
        wp_redirect( $redirect_to );
        exit();
    }

    Change the test-page to whatever URL you want to redirect the user. Please note this will be done forcefully no matter what option you have selected on our registration action setting.

    Regards,
    Patrik

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Required Email Activation plus Redirect Page’ is closed to new replies.