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.