Redirect based on the page | Peter's Login Redirect | Forum
Back to the login redirect plugin page
11:07 am
Hello. I'm trying to figure out how to make a redirect based on the page on which the user was logged, but can't find the answer. For example:
- If the user made the login on a link in HOME, I want him to be redirected to a specific page.
- If the user made the login on the ABOUT US, I want him to be redirected to another page.
Any idea?
If you want to redirect all users based on the what page they came from, you could edit the various login forms to post a hidden "redirect_to" variable with the desired redirect URL. That would use built-in WordPress functionality.
If you need something more complicated, you can extend my plugin by adding your own redirect logic as described here:
http://wordpress.org/plugins/p.....her_notes/