If you want to create a login-based website and need to redirect all your visitors to the login page, add this code to your theme’s functions.php file.
Redirect Visitors To Login (Force Login Page)
Read More →
If you want to create a login-based website and need to redirect all your visitors to the login page, add this code to your theme’s functions.php file.