• Hi,

    So, I have an issue with my site where when a member logs in, it goes to mysite.com/user-account/IDName The issue is, I would prefer it goes to mysite.com/my-account/IDName. I used a simple redirect plugin so that after login all users go to mysite.com/my-account/, however, ultimite member still adds their IDName after it, which causes a 404. And, I can’t get rid of the Profile Permalink Base in user settings. Any way I can fix this?

    My other question, perhaps slightly easier, is how can I get all not logged in users to be redirected to mysite.com/login if they try to go to mysite.com/my-account and vice versa if logged in.

    Thank you,
    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bostoxbooking

    (@bostoxbooking)

    Hi, after sign-in just re-read my post and want to clarify, I would prefer after all subscribers go to mysite.com/my-account/, with no ID name in the permalink, but right now it adds the permalink. Thx.

    • This reply was modified 5 years, 11 months ago by bostoxbooking.
    /**
     * Redirect user after login
     *
     * @param $args
     */
    function sd_redirect_user_login( $args ) {
        wp_safe_redirect( {your url} );
        exit;
    }
    add_action( 'um_on_login_before_redirect', 'sd_redirect_user_login', 10, 1 );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘3 Specific Questions’ is closed to new replies.