Problem:
I used the custom PHP code below to redirect on the user logging in, But it is not being picked up as access control is activating when going to a specific page:
https://toolset.com/forums/topic/role-access-redirect/#post-1304451
Solution:
I have tried your custom codes in my localhost, it works fine, it does redirect to different URLs on different user role.
But there is one issue should be notice, you can not redirect users to external website URLs by default, see similar thread here:
https://wordpress.stackexchange.com/questions/226794/custom-login-form-redirect-to-external-site
Relevant Documentation:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 5 replies, has 2 voices.
Last updated by 5 years, 5 months ago.
Assisted by: Luo Yang.