How to Enable/Disable Auto Login when User Register

By: Prem Tiwari | Last Updated: | In: WordPress Snippets


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.

wordpress-hand-850x476

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.

Share this post!


About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


Tags: , , , , , , , ,