I'd like to hide my admin login, since it was disabled some time ago because of attacks. (I do not remember what they were exactly, my site was down for another reasons long time)
I know there are several plugins to do this, but I would like to use my own code.
Has anyone done this before, and is it possible to add this to theme functions.php?
I have already searched but found no tutorial on the internet, but could this example be a starting point? Changing wp login url without .htaccess
I have written my own template with functions already, but this is far more complex, so hope to get some hints from fellow more experienced wordpress coders. Sorry if this is a dumb question