Redirect WordPress login for customers but not admin
After a bit of thinking, I came up with a solution that allows wp-login.php to be redirected for the public/customers, but not for the admin. I did this by getting the referrer URL. Here is my updated code, but I’m open to other ideas. //Redirect for login from wp-login.php to my-account if not admin add_action(‘init’, … Read more