Skip Navigation

[Resolved] Redirected user

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#2159919

Hello,

A user is registered by choosing a sport. When he connects, he is redirected to an url related to the sport he has chosen.

Is it possible ? What would the code be?

Thank you.

#2159937

Hello and thank you for contacting Toolset support.

You will need a custom code hooked into the login_redirect filter to return the relevant URL for the logged-in user.
https://developer.wordpress.org/reference/hooks/login_redirect/

What the code would be, I can't really tell without knowing more details about your setup. Check these articles for more information about Toolset API:
- Especially the top yellow section https://toolset.com/documentation/customizing-sites-using-php/functions/
- In case you have relationships: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/

I hope this helps. Let me know if you have any questions.