Switch To link destination
-
I just followed the response to ww.wp.xz.cn/support/topic/include-user-switching-link-outside-users-php/ to create a “Switch To” link on the frontend which worked great. However, I’d like to extend this so that the link redirects to a specific page not just whatever the default “redirect_login” points to.
Currently, it just takes the user who clicked “Switch To” to whatever is the default page in “redirect_login” (i.e. /wp-admin/).
It is worth noting that I don’t want to change the link above globally, but just for the specific frontend usage above to take me to a specific page instead.
In other words, the “Switch To” link from the “users.php” page should still take me to the default “/wp-admin/” page, but the “Switch To” link created on the frontend using the guide above should take me to a specific page after switching me to that user. Is there anyway to achieve this? If not, any plans to add such functionality would be great.
The topic ‘Switch To link destination’ is closed to new replies.