How to Enable/Disable Auto Login when User Register

Prem Tiwari - - 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.


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.

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.