How to Enable/Disable Auto Login when User Register

In this tutorial, I will explain how to enable/disable auto login when a user registered with your WordPress sites. This is simple WordPress snippets which allows you to disable/enable auto-login to your WordPress site.

Sometimes we need to disable or enable the auto login once the registration process is completed. Auto-login reduces the one extra steps after the register on your WordPress site.


How to Disable Auto Login when User Register

Use the below code inside the wp-content/themes/your-theme-folder/functions.php file and save it.

How to Enable Auto Login when User Register

Copy below code and paste it at the end of the wp-content/themes/your-theme-folder/functions.php file.

Hope this tutorial help you! Do like and share this tutorial with your friends and don’t forget to subscribe my blog to learn the cool WordPress tips & trick.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , , , , , ,