• Resolved mira19

    (@mira19)


    Hello, please tell me, is it possible to make it so that when selecting the Auto approval after email confirmation option, the user does not log in automatically, but is taken to a page where he needs to enter his login? Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Sandip Pokhrel

    (@sandippokharel)

    Hi there,

    Thanks for writing in,

    The request you have can be achieved with the help of the following code snippet.

    add_filter( 'user_registration_allow_automatic_user_login_email_confirmation', function(){
                                return false;
                            } );

    We suggest you use a code snippet plugin to add this code. Or, you can directly add it to the functions.php file of your active theme. We recommend the first method so that it won’t be affected after the theme update.

    Regards!

    Thread Starter mira19

    (@mira19)

    Thanks, it works ??

    Thread Starter mira19

    (@mira19)

    Please tell me also, is it possible to add a redirect when the user logs in through the form, for different roles to different URLs? Thank you

    Plugin Support Sandip Pokhrel

    (@sandippokharel)

    Hi @mira19

    Thanks for writing back,

    The feature you are looking for is available in the premium version of the plugin.

    According to the WordPress Support community guidelines, we can not discuss the premium features here because this support forum is for free plugin users. If you are interested in premium features, please go through this link: https://wpuserregistration.com/. You will find the live chat option to contact our support representative.

    Regards!

    Hi, Is there a way to prevent redirection to the login page but keep the auto login feature? I have added the custom slug in “Email Confirmation” content but not working and redirecting to login page.

    Perhaps I did not understand what ubaid ismail is asking, but without the custom code, when the user clicks the confirmation link in the email, they are automatically logged in, correct?

    I am so glad mira19 (above) asked about this, because we feel that automatically logging users in when they confirm their email may confuse them. And I love that when automatic login is turned off this way, users see a message at the top of the login screen: “User successfully registered on [the website title appears here]. Login to continue.” That makes what’s going on totally clear.

    While I am comfortable adding PHP code, being able to do the same thing via plugin settings would be a nice feature to add in the future.

    Thanks for a great plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect to my-account page after confirmation email’ is closed to new replies.