Title: Last Login
Author: dkukral
Published: <strong>2012 年 1 月 22 日</strong>
Last modified: 2014 年 9 月 10 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/last-login.svg)

# Last Login

 作者：[dkukral](https://profiles.wordpress.org/dkukral/)

[下载](https://downloads.wordpress.org/plugin/last-login.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/last-login/#description)
 * [评价](https://cn.wordpress.org/plugins/last-login/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/last-login/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/last-login/#developers)

 [支持](https://wordpress.org/support/plugin/last-login/)

## 描述

Records logins and provides a function to display the timestamp.

### License

Copyright 2010 – 2014 Joe Boydston, Don Kukral

This program is free software; you can redistribute it and/or modify
 it under the
terms of the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
 but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
 along with this
program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite
330, Boston, MA 02111-1307 USANone.

## 屏幕截图

 * [[

## 安装

Copy “last-login” folder to your WordPress Plugins Directory.
 Activate plugin via
WordPress settings.

## 常见问题

  How do I display the last login of the current user?

<php echo get_last_login_current_user(); %gt;

  How do I display the last login of a specific user?

<php echo get_last_login($user_id); %gt;

  How do I change the date format of the last login time?

You can pass the format to either last_login_time_current_user() or last_login_time()
functions.

Use standard PHP strftime format parameters.
 (http://php.net/manual/en/function.
strftime.php)

<php echo get_last_login_current_user($format); %gt;
 <php echo get_last_login($
user_id, $format); %gt;

  How can I see if the user has a recorded timestamp? (has logged in since plugin
activated)

You can call check_last_login($user_id) or check_last_login_current_user().

It will return true if a login has been recorded and false if not.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Last Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ dkukral ](https://profiles.wordpress.org/dkukral/)
 *   [ Joe Boydston ](https://profiles.wordpress.org/jboydston/)

[帮助将「Last Login」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/last-login)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/last-login/)，查看[SVN仓库](https://plugins.svn.wordpress.org/last-login/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/last-login/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/last-login/)。

## 更新日志

#### 1.2

Verified compatibility with WP 4.0 – fixed call to get_last_login()

#### 1.1

Verified compatibility with WP 3.9.1

#### 1.0

Initial Version

## 额外信息

 *  版本 **1.2**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/last-login/)
 * 标签
 * [login](https://cn.wordpress.org/plugins/tags/login/)
 *  [高级视图](https://cn.wordpress.org/plugins/last-login/advanced/)

## 评级

 1 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/last-login/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/last-login/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/last-login/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/last-login/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/last-login/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/last-login/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/last-login/reviews/)

## 贡献者

 *   [ dkukral ](https://profiles.wordpress.org/dkukral/)
 *   [ Joe Boydston ](https://profiles.wordpress.org/jboydston/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/last-login/)