How can I use the shortcode along with a redirection url?
-
I purchased the PRO version of Login As User and am using the shortcode to have a login link placed in a custom admin dashboard page. I am using it as such:
[login_as_user user_id="123"]
It works as expected, but it always ends up redirecting back to the website’s home page. I was wondering if I could pass in an additional parameter to redirect to a different page upon login? Perhaps something like this:
[login_as_user user_id="123" redirect_to="https://mypreferred.com/page/"]
I also tried another approach, which is to force inject to the end of the generated login button’s href attribute an “&redirect_to=https://mypreferred.com/page/” (escape slashed properly), but that also didn’t work.
- The topic ‘How can I use the shortcode along with a redirection url?’ is closed to new replies.