Always redirect current user to certain page

Question

What code do i have to use to always redirect a certain user (or role) to a certain page?

*Example:
IF Logged in & current user = Harry Then Redirect to domain.com/harryspage
IF Logged in & current user = Carl Then Redirect to domain.com/carlspage

or

IF Logged in & current role = Harry Then Redirect to domain.com/harryspage
IF Logged in & current role = Carl Then Redirect to domain.com/carlspage

I found this code, but its used for some plugin that i dont want to use. Could this be rebuild the way i want it to work?:

0
Koenjonguh 3 years 2020-03-30T12:51:18-05:00 0 Answers 76 views 0

Leave an answer

Browse
Browse