• Resolved pablogg2

    (@pablogg2)


    Hi,

    I want to redirect a user after registration and login, but it doesn’t work

    The url where I want to redirect is another site, maybe is that the problem?

    Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pablogg2

    Have you tried changing the Redirection URL in the Register/Login options in the User Role settings?

    For Login redirection, please go to WP Admin > Ultimate Member > User Roles > Edit a Role > See “Login Options” > “Action to be taken after login” > Redirect to URL.

    For Register redirection, please go to WP Admin > Ultimate Member > User Roles > Edit a Role > See “Login Options” > “Action to be taken after registration” > Redirect to URL.

    Regards,

    Thread Starter pablogg2

    (@pablogg2)

    Yes, but not work.

    https://ibb.co/7Gw6BZp

    Thread Starter pablogg2

    (@pablogg2)

    Is possible to do a custom code function in function.php to force redirect after login?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pablogg2

    Were you trying to log in/Register via UM Login and Register forms? or you’re using the default WP-Admin login/register forms?

    You can use this action to attach your function with the redirection: um_on_login_before_redirect

    For Register, you can attach the redirection to this action hook: um_user_register

    Regards,

    • This reply was modified 3 years, 10 months ago by Champ Camba.
    Thread Starter pablogg2

    (@pablogg2)

    I’m using de register via UM Register forms and the user after register is logged.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pablogg2

    Do the action hooks I’ve provided above work for you?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pablogg2

    …Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter pablogg2

    (@pablogg2)

    I have tried different codes but I cannot get that after registering a user is redirected to the url it came from in https://mysite.com/register/?redirect_to=https://urltoredirect.com

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirect to external site’ is closed to new replies.