How can I use the shortcode along with a redirection url?

[ad_1]

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.

  • This topic was modified 8 hours, 16 minutes ago by aregabc.
  • This topic was modified 8 hours, 15 minutes ago by aregabc.
  • This topic was modified 8 hours, 15 minutes ago by aregabc.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer