redirect – Redirecting by role from a button
We have a button at the top of our site where users can quickly get their account information, but we need to redirect them to different pages based on their role.
Is there code I can add to this button code to accomplish this?
<a href="/my-account/"><span class="wbutton">My Account | Logout</span></a> <?php else : ?> <a href="/connect/"><span class="wbutton">Login | Register</span></a> <?php endif; ?>
01 month 2023-04-27T15:08:37-05:00 2023-04-27T15:08:37-05:00 0 Answers 0 views 0
Leave an answer