• Resolved derekmhart

    (@derekmhart)


    I’m using UltimateMember, and MemberPress together. I love using the features of both, as the Login process works really well through UltimateMember. When a user goes directly to the Login page, I need to redirect to the Account page in MemberPress, not UltimateMember. I don’t see any options to direct to a different account page.

    Is this possible? Can I redirect somehow?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @derekmhart

    Please go to Ultimate Member->User Roles->Member(Edit)->Login Options, inside your dashboard & set “Action to be taken after login” to “Redirect Url” and provide the url of the account page that you want to redirect.

    I am assuming your default user role is “Member” , you can use the same settings for any user role.

    Thank you.

    Thread Starter derekmhart

    (@derekmhart)

    I was hopeful that would work. When I log in from the site, it goes to a page like this:

    https://www.mysite.com/login

    And it DOES properly redirect to the URL I want.

    But then if I exit the browser, and go directly to https://www.mysite.com/login, it does not redirect to the URL, but goes to the Ultimate Member account page.

    Can I interrupt that and go the URL I want, as if the user has already logged in?

    Thread Starter derekmhart

    (@derekmhart)

    If anybody is ever interested in this, here is the code I added to functions.php in the child folder of the theme I’m using, and it works perfectly. Just had to organize it. Login01 is hardcoded which is not ideal.

    function redirect_logged_in_user()
    {
    if ( is_user_logged_in() && is_page( ‘login01’ ))
    {
    wp_redirect( home_url(‘/understand-each-other-dating-course-outline/’) );
    exit;
    }
    }
    add_action( ‘template_redirect’, ‘redirect_logged_in_user’ );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect To My Own Account Page’ is closed to new replies.