public function redirect_to_login($redirect_after = null, $status = 302)
    {
        if ($redirect_after === null) {
            $redirect_after = Theme_Utils::get_current_url();
        }

        $this->redirect(\wp_login_url($redirect_after), $status);
    }
public function redirect_to_login($redirect_after = null, $status = 302)
    {
        if ($redirect_after === null) {
            $redirect_after = Theme_Utils::get_current_url();
        }

        $this->redirect(\wp_login_url($redirect_after), $status);
    }
public function redirect_to_login ( $ redirect_after = null , $ status = 302 ) { if ( $ redirect_after === null ) { $ redirect_after = Theme_Utils :: get_current_url ( ) ; } $ this -> redirect ( \ wp_login_url ( $ redirect_after ) , $ status ) ; }
Redirects the user to the current login URL.

After login, the user will be returned to the original URL before redirection took place.

@since 1.0.0

@param string $redirect_after The URL the user should be sent to after the login screen. Defaults to current URL.
@param int    $status         Optional. The HTTP status to send when redirecting. Default 302.
Redirects the user to the current login URL .