Conditionally change a hyperlink url based on user role

I am looking for a way to change the destination URL of a hyperlink based on the logged in user’s user role.

I will have 3 custom user roles:

Persona 1
Persona 2
Persona 3

The website will be a member’s only site, requiring each user to log in before seeing any content.

On the home page, I will have a BUTTON that when clicked, will redirect the user to one of three page versions dependent on their user role.

i.e.

On button click:

Persona 1 – redirected to Page 1
Persona 2 – redirected to Page 2
Persona 3 – redirected to page 3

Any help in achieving this outcome is greatly appreciated.

Thanks in advance!

Tommy

Read more here:: Conditionally change a hyperlink url based on user role

Leave a Reply

Your email address will not be published. Required fields are marked *