跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

WP Last Login

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

WP Last Login

由 Konstantin Obenland 開發
下載
即時預覽
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

WP Last Login records when each user signs in and surfaces it as a sortable column on the Users screen — so you can see who’s active, identify dormant accounts, and confirm that real people are coming back.

Features

  • Sortable “Last Login” column on the Users screen, including the network admin user list on multisite.
  • Hover any date to reveal the exact login time.
  • Captures logins via the standard wp_login action, so it works with any login flow that triggers it — including the Two Factor plugin, WooCommerce, BuddyBoss, and most social-login plugins.
  • Users without a recorded login show a neutral em-dash (—) — never a misleading “never” — and still sort correctly when ordered by last login.
  • Lightweight: one user meta key, no settings page, no extra database tables.
  • Filter hooks let you customize the date format or hide the column from non-admin roles.

Plugin Filter Hooks

wpll_current_user_can (boolean)

Whether the column is supposed to be shown.
Default: true

wpll_date_format (string)

The date format string for the date output.

螢幕擷圖

  • Last login column in the user table.

安裝方式

  1. Download WP Last Login.
  2. Unzip the folder into the /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

常見問題集

Why does the column show an em-dash (—) for all my users?

The plugin records a login when a user signs in after it’s been activated. WordPress doesn’t store historical login data, so existing accounts will start populating their “Last Login” the next time each user logs in. Hovering the dash shows a tooltip explaining the same.

How do I change the date format or show the time?

The date follows your site’s general date format (Settings → General); the exact time appears on hover. To override the date format, use the wpll_date_format filter:

add_filter( 'wpll_date_format', function() {
    return 'Y-m-d H:i';
} );

How do I hide the column from non-admin users?

Filter wpll_current_user_can and return a capability check. Login tracking still happens — only column visibility is gated:

add_filter( 'wpll_current_user_can', function() {
    return current_user_can( 'manage_options' );
} );

Does it work with multisite, Two Factor, WooCommerce, BuddyBoss, or social login plugins?

Yes. The plugin hooks into WordPress’s standard wp_login action, so any login method that triggers it is captured. The Two Factor plugin (which interrupts wp_login) is supported via a dedicated hook.

What happens to my data if I deactivate the plugin?

Deactivating leaves stored login timestamps intact, so reactivating preserves history. Uninstalling (deleting the plugin entirely) removes all of the plugin’s user meta.

使用者評論

Very useful

Joris Le Blansch 2026 年 1 月 1 日
Simple, yet very useful plugin. Using it on dozens of sites I manage.

as perfect as simple

amiens80 2024 年 10 月 4 日
this is the kind of plugin i love : just install, activated, no need setting, it runs fine! no need support. As an english person, i have no need to translate it at all. Great one ! Work fine on wp 6.6.2 and wp 6.6.1 ps : I would request another tiny feature : add the last ip of login date !

Works WP 6.5

flyingkites 2024 年 4 月 3 日
Switched to this plugin as another similar plugin by YooHoo was incompatible with TwoFactor. This works with both TwoFactor and Limit Login Attempts plugins. [Anyone who says it does not work likely has a code conflict with another plugin]

Excellent + now compatible with Two Factor

DigitalGdn 2023 年 12 月 27 日
Well maintained plugin. This is the only ‘last login’ plugin I have found that supports two factor.

Doesn’t work, sadly

editorialteamnwu 2023 年 1 月 30 日
Totally useless: every user is listed as never having logged in, even the one I’m currently logged in as to view this. Two stars instead of one because at least it didn’t seem to break anything.

Is not reliable

Dirk 2019 年 11 月 18 日 4 則留言
It shows users as Login “Never” even the users have been logged in. I decided on this information to delete users! Good luck, I had an early backup of the database! Do not trust in this Plugin!
閱讀全部 25 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Last Login〉的開發相關工作。

參與者
  • Konstantin Obenland

〈WP Last Login〉外掛目前已有 11 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WP Last Login〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

7

  • Added compatibility with Two Factor plugin. Props @bkno.
  • Improved date display to display login time on hover.

6

  • Revamped file structure to remove unnecessary files.
  • Fixed a bug where login dates were overwritten on plugin reactivation. Props @richardbuff.

5

  • Improved uninstall routine (no longer queries all users).
  • Updated utility class.
  • Tested with WordPress 6.1.

4

  • Improved date display to account for the timezone of the site. Props @knutsp.

3

  • Fixed a bug where users who haven’t logged in disappear from user lists when ordering by last login. See https://wordpress.org/support/topic/new-users-dont-get-the-meta-field/

2

  • Maintenance release.
  • Updated code to adhere to WordPress Coding Standards.
  • Tested with WordPress 5.0.

1.4.0

  • Fixed a long standing bug, where sorting users by last login didn’t work.
  • Tested with WordPress 4.3.

1.3.0

  • Maintenance release.
  • Tested with WordPress 4.0.

1.2.1

  • Reverts changes to wp_login() as the second argument seems not to be set at all times.

1.2.0

  • Users are now sortable by last login!
  • Updated utility class.
  • Added Danish translation. Props thomasclausen.

1.1.2

  • Fixed a bug where content of other custom columns were not displayed.

1.1.1

  • Updated utility class.

1.1.0

  • Made the display of the column filterable.
  • Widened the column a bit to accommodate for large date strings.

1.0

  • Initial Release.

中繼資料

  • 版本 7
  • 最後更新 2 小時前
  • 啟用安裝數 10,000+
  • WordPress 版本需求 6.5 或更新版本
  • 已測試相容的 WordPress 版本 6.9.4
  • PHP 版本需求 7.4 或更新版本
  • 語言

    Arabic、Danish、Dutch、English (US)、Finnish、French (France)、German、Italian、Norwegian (Bokmål)、Spanish (Chile)、Spanish (Spain)、及 Swedish.

    將這個外掛本地化為你的母語版本

  • 標籤:
    adminlast loginloginuser
  • 進階檢視

評分

3.7 星,滿分為 5 星
  • 13 個 5 星使用者評論 5 星 13
  • 3 個 4 星使用者評論 4 星 3
  • 2 個 3 星使用者評論 3 星 2
  • 3 個 2 星使用者評論 2 星 3
  • 4 個 1 星使用者評論 1 星 4

Your review

查看全部使用者評論

參與者

  • Konstantin Obenland

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

贊助

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.