• Resolved oversightwp

    (@oversightwp)


    The plugin works in that it does change thr login url. However it also redirects to the wrong page after login. For admins we have it go to the main site page as if they were users, your plugin sends an admin directly to the admin backend which we don’t want. This plugin is incompatible with BuddyBoss platform. Please advise.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plus one on this.

    Basically, I’m using the following but your plugin isn’t honoring it …

    function login_redirect( $redirect_to, $request, $user )
    {
    return home_url( ‘members’ );
    }
    add_filter( ‘login_redirect’, ‘login_redirect’, 10, 3 );

    @oversightwp

    I’ve come up with a workaround for my site and thought maybe it would inspire something for yours.

    In my functions.php file …

    if ( is_admin() && !is_super_admin() && strpos($_SERVER['REQUEST_URI'], '/profile.php') === false ) {
        header( "Location: INSERT REDIRECTION HERE" );
        exit();
    }

    Note that I’m not using a 301 message in the header redirect.

    Plugin Author NicolasKulka

    (@nicolaskulka)

    great

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login Redirect Change?’ is closed to new replies.