intersynergy-login-plugin.php
/**
     * Redirect the user to the custom login page instead of wp-login.php.
     */
Redirect the user to the custom login page instead of wp-login.php.
Redirect the user to the custom login page instead of wp - login . php .
public function redirect_to_custom_login()
    {
        if ($_SERVER['REQUEST_METHOD'] == 'GET') {
            $redirect_to = isset($_REQUEST['redirect_to']) ? $_REQUEST['redirect_to'] : null;
            if (is_user_logged_in()) {
                $this->redirect_logged_in_user($redirect_to);
                exit;
            }
            $login_url = home_url($this->pageSlug['member-login']);
            if (! empty($redirect_to)) {
                $login_url = add_query_arg('redirect_to', $redirect_to, $login_url);
            }
            wp_redirect($login_url);
            exit;
        }
    }
public function redirect_to_custom_login ( ) { if ( $ _SERVER [ 'REQUEST_METHOD' ] == 'GET' ) { $ redirect_to = isset ( $ _REQUEST [ 'redirect_to' ] ) ? $ _REQUEST [ 'redirect_to' ] : null ; if ( is_user_logged_in ( ) ) { $ this -> redirect_logged_in_user ( $ redirect_to ) ; exit ; } $ login_url = home_url ( $ this -> pageSlug [ 'member-login' ] ) ; if ( ! empty ( $ redirect_to ) ) { $ login_url = add_query_arg ( 'redirect_to' , $ redirect_to , $ login_url ) ; } wp_redirect ( $ login_url ) ; exit ; } }
Redirect the user to the custom login page instead of wp-login.php.
Redirect the user to the custom login page instead of wp - login . php .
// The rest are redirected to the login page