Separate login redirect for Admin & User
-
Hi all,
Am hoping someone can help me out with this. I’ve searched online and within these forums for a solution but have not come up with anything for what I’m wanting to do.
I would like to be able to have a user be redirected to a page I specify, though still have the admin be redirected to the dashboard.
I tried installing the Themed Login Plugin, but that redirects both the admin and user to the same place. I also tried Weazle’s Login Redirect Plugin, that didn’t work as I wanted to either. I did search for Login Redirect, but all the posts I came across dealt with redirecting just the user. Which isn’t what I want exactly.
I’m not extremely knowledgeable in PHP, I can replace code with other code, or add code within a PHP file, and I can sometimes recognize what a piece of code is telling the script to do. But I can’t hard code PHP – yet.
Is there a way to add an extra line within the PHP code for the wp-login.php file to say if admin = user then go here, if user = user then follow the active plugin.. or something to that effect? Or is there a plugin available now that can do this?
I’ve been searching for most of the day already, and keep coming up empty. Any help with this would be greatly appreciated.
The topic ‘Separate login redirect for Admin & User’ is closed to new replies.