If you want to create a login based website and you need to redirect all your visitors to login page, please add this code in your theme’s functions.php file. Solution 1 function protect_whole_...