- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The topic ‘Get Redirect Link’ is closed to new replies.
Tagged: redirect
Hey,
Just to explain: I have different user roles that when they login they get redirected to a URL. This works as should.
From the site site they get redirected too if they hit browser “go back” button they land on the WordPress “Logged in page”.
On this page I would to grab the redirect link assigned to the user group of the user who is logged in and assign it to a button called “Return to Site”.
Can you help?
Hi Greg,
You can get the URL using the login_redirect filter.
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect
Thanks
Syam