Anytime you want to login to your WordPress dashboard, you are typically typing in yourdomain.com/wp-admin or something similar.
For us admin folks and those who use the dashboard on a regular basis, that is not a problem. However, if you want to build a site on WordPress but never want folks to actually see the default login screen, I’ve whipped up some quick code that will force all login requests to go through a custom login route of your choosing.
You can simply drop this code into your theme’s functions.php file, and change the route to one of your choosing. … [continue reading]