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

    (@champsupertramp)

    Hi @pablogg2

    You can change the redirection after Registration in the User role settings. Please go to WP Admin > Ultimate Member > User Roles > Edit a role > See “Registration Options” > see “Actions to be taken after registration” > Select “Redirect URL”.

    Regards,

    Thread Starter pablogg2

    (@pablogg2)

    But with this option I have to point to unique link I want that the redirect be to the url from the user came..

    https://mysite.com/register/?redirect_to=https://urltoredirect.com/event-1

    or

    https://mysite.com/register/?redirect_to=https://urltoredirect.com/event-2

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @pablogg2

    You can try adding this code snippet to redirect a user after the registration is completed:

    add_action("um_registration_complete","um_050621_redirect_to", 1, 2 );
    function um_050621_redirect_to( $user_id, $args ){
        if( isset( $_REQUEST['redirect_to'] ) ){
            wp_redirect( $_REQUEST['redirect_to'] );
        }
    }

    In the User Role settings, the “Registration Status” should be set to Auto Approve under the Registration Options.

    You can add the code snippets in your theme’s functions file or use the Code Snippets plugin to run the code.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    ..This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. ..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,

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