Calling all PHP wizards!
I need to restrict access to my entire WP site. I know there are a few plugin solutions out there but would rather not go down that route as I want full control over the login page content, style etc.
I have stumbled across a pretty neat snippet that forces login via wp-login.php page, but I would like to amend this so that logged out users are redirected to a custom URL where I can place the Oxy login form, say /login
Here is the snippet – any takers?