跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Last Login

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

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

Last Login

作者:dkukral
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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
  • Joe Boydston

帮助将「Last Login」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

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)
  • 标签
    login
  • 高级视图

评级

1 星(最高 5 星)。
  • 0 条 5 星评价 5 星 0
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 1 条 1 星评价 1 星 1

Your review

查看全部评论

贡献者

  • dkukral
  • Joe Boydston

支持

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

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.