intersynergy-login-plugin.php
/**
     * Redirect the user after authentication if there were any errors.
     *
     * @param Wp_User|Wp_Error $user     The signed in user, or the errors that have occurred during login.
     * @param string           $username The user name used to log in.
     * @param string           $password The password used to log in.
     *
     * @return Wp_User|Wp_Error The logged in user, or error information if there were errors.
     */
Redirect the user after authentication if there were any errors.
@param Wp_User|Wp_Error $user     The signed in user, or the errors that have occurred during login.
@param string           $username The user name used to log in.
@param string           $password The password used to log in.

@return Wp_User|Wp_Error The logged in user, or error information if there were errors.
Redirect the user after authentication if there were any errors . @param Wp_User|Wp_Error $user The signed in user or the errors that have occurred during login . @param string $username The user name used to log in . @param string $password The password used to log in . @return Wp_User|Wp_Error The logged in user or error information if there were errors .
public function maybe_redirect_at_authenticate($user, $username, $password)
    {
        if ($_SERVER['REQUEST_METHOD'] === 'POST') {
            if (is_wp_error($user)) {
                $error_codes = implode(',', $user->get_error_codes());
                $login_url = home_url($this->pageSlug['member-login']);
                $login_url = add_query_arg('login', $error_codes, $login_url);
                wp_redirect($login_url);
                exit;
            }
        }
        return $user;
    }
public function maybe_redirect_at_authenticate ( $ user , $ username , $ password ) { if ( $ _SERVER [ 'REQUEST_METHOD' ] === 'POST' ) { if ( is_wp_error ( $ user ) ) { $ error_codes = implode ( ',' , $ user -> get_error_codes ( ) ) ; $ login_url = home_url ( $ this -> pageSlug [ 'member-login' ] ) ; $ login_url = add_query_arg ( 'login' , $ error_codes , $ login_url ) ; wp_redirect ( $ login_url ) ; exit ; } } return $ user ; }
Redirect the user after authentication if there were any errors.
Redirect the user after authentication if there were any errors .
// Check if the earlier authenticate filter (most likely, // the default WordPress authentication) functions have found errors