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

    (@meetyourself)

    I’ve tried link & here is my code

    add_filter( 'login_redirect', 'redirect_admin');
    function redirect_admin( $redirect_to, $request, $user ){
        //is there a user to check?
        if ( isset( $user->roles ) && is_array( $user->roles ) ) {
            
                $redirect_to = WP_HOME.'/quote-list/'; // Your redirect URL
        }
        return $redirect_to;
    }

    but it’s not working.

    • This reply was modified 6 years, 5 months ago by meetyourself.
    Plugin Author M A Vinoth Kumar

    (@vinoth06)

    Hi,

    Is there any problem in using the Frontend Dashboard settings,

    WordPress Admin | Frontend Dashboard | Frontend Dashboard | Login | Settings | Redirect After Logged in URL ?

    Image link for your reference => https://imgur.com/a/dKB1fUW

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom redirect after login’ is closed to new replies.