Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Instead of using auth_redirect():

    
    if ( ! is_user_logged_in() ) {
        $redirect_to = wp_login_url( $_SERVER['REQUEST_URI'] );
        wp_redirect( $redirect_to );
        exit;
    }
    
Viewing 1 replies (of 1 total)

The topic ‘auth_redirect() doesn’t send users back’ is closed to new replies.