• Resolved stefang88

    (@stefang88)


    Is there a way to change the ?redirect_to… utm when the site is only accessible to logged in users?

    I think I found the UM hook but can’t find any documentation on it.

    The page I need help with: [log in to see the link]

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

    (@champsupertramp)

    Hi @stefang88

    You can change the redirection after user login in WP Admin > Ultimate Member > User Roles > Edit a role > see “Login Options” > See “Action to be taken after login.”

    Regards,

    Thread Starter stefang88

    (@stefang88)

    Hi @champsupertramp ,

    Sorry I meant for this redirect_to url/
    https://ibb.co/njwSLK6

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stefang88

    It’s not clear what you want to achieve. Are you trying to change the value of “Custom Redirect URL” for a specific user?

    Regards,

    Thread Starter stefang88

    (@stefang88)

    Hi @champsupertramp,

    We need people to login through another portal which is our main site. (not wordpress). This would have a return_URL value of another page within the main site that would forward them back to our wordpress site.

    The reason for my contact is, I can find where to change this return_URL. At the moment it just goes back to the home page of the WordPress site, I would like to change this to a particular URL instead.

    https://ibb.co/8gWQfhx

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stefang88

    Sorry for the late response.

    Did you assign the UM Login page in WP Admin > UM > Settings > General > Pages?

    Regards,

    Thread Starter stefang88

    (@stefang88)

    Hi @champsupertramp

    Yes the UM login is the just the normal UM page.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stefang88

    Could you please provide a screenshot of the UM Access settings?
    Please go to WP Admin > Ultimate Member > Settings > Access.

    You can upload your screenshot via imgur.com and then share the Image URL here so we can review it.

    Regards,

    Thread Starter stefang88

    (@stefang88)

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stefang88

    Sorry for the late response.

    It’s not clear what you want to achieve. Do you want to change the Custom Redirect URL dynamically with a filter hook?

    You can use the following filter hook to modify it:

    add_filter("um_get_option_filter__access_redirect", function( $redirect_url ){
        $redirect_url = "https://yoursite.com/custom-page";
       return $redirect_url;
    });

    Feel free to re-open this thread if there’s any question that may come up. Just change the topic status to “Not Resolved” so that we can get back to you.

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom redirect_to link for Custom Redirect URL’ is closed to new replies.