Arrow

redirect login page if user is already logged in | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
redirect login page if user is already logged in
July 3, 2012
3:50 am
Tony
Guest

Hi, I don't know if your plugin is designed to handle this scenario, but what I need to do is redirect the wordpress login page (site.com/wp-admin) to another page if the user is already logged in. I am trying to avoid logged-in users from landing into the admin area which is confusing for them. I have my homepage redirecting to the login page, which is why this is a likely scenario. Any advice on how to accomplish this redirect?

July 3, 2012
7:56 am
Peter
Admin
Forum Posts: 841
Offline

Hi, since there's no login process for that scenario, my plugin wouldn't help out of the box, although you could look at re-using some of the code separately. Perhaps you could look into some sort of generic hook in the admin interface and then inject some code that checks the user's role and/or capabilities there. Good luck!