Redirect default login page to a custom page [duplicate]
Generally, you need to tell WordPress when to do things. If you just dropped your code in a plugin, then you’re not giving WordPress information on when to execute your commands, and you risk the functions you need not being defined yet. Right now, your code is saying, “If someone isn’t logged in, always redirect … Read more