Title: When Last Login
Author: Andrew Lima
Published: <strong>2016 年 7 月 15 日</strong>
Last modified: 2025 年 12 月 3 日

---

搜尋外掛

![](https://ps.w.org/when-last-login/assets/banner-772x250.jpg?rev=1665438)

![](https://ps.w.org/when-last-login/assets/icon-256x256.png?rev=1665438)

# When Last Login

 由 [Andrew Lima](https://profiles.wordpress.org/andrewza/) 開發

[下載](https://downloads.wordpress.org/plugin/when-last-login.1.2.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/when-last-login/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/when-last-login/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/when-last-login/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/when-last-login/#developers)

 [技術支援](https://wordpress.org/support/plugin/when-last-login/)

## 外掛說明

A lightweight plugin that allows you to see active users according to their last
login time/date. No need to configure, simply activate When Last and you’re ready
to go! This adds a custom column to your WordPress users list of “Last Login” and
a timestamp linked to that user.

#### Features

 * Show when last a user has logged into your site.
 * Sorts users according to last login time stamp (Ascending/Descending) in the 
   WordPress user list.
 * Administrator widget for top 3 users according to login count.
 * Integrates with Paid Memberships Pro 1.8+ – Add’s a ‘Last Logged In’ column to
   the ‘Members List’.
 * Generates a login history table under ‘When Last Login’ > ‘All Login Records’.
 * Hooks and filters for developers.
 * Record the user’s last IP address when logging into your WordPress website (Optional
   Setting).
 * A variety of [Premium](https://yoohooplugins.com/plugins/?utm_source=plugin&utm_medium=wordpress&utm_campaign=premium_addons)
   and Free add-ons available.

#### Free Add-ons

 * [When Last Login – Welcome Email](https://wordpress.org/plugins/when-last-login-welcome-email-add-on/)
 * [When Last Login – Export User Records](https://wordpress.org/plugins/when-last-login-export-user-records/)

#### Premium Add-ons

 * [When Last Login – Slack Notifications](https://yoohooplugins.com/plugins/when-last-login-slack-notifications/?utm_source=plugin&utm_medium=wordpress&utm_campaign=slack_notifications)
 * [When Last Login – User Statistics](https://yoohooplugins.com/plugins/when-last-login-user-statistics/?utm_source=plugin&utm_medium=wordpress&utm_campaign=user_statistics)
 * [When Last Login – Zapier Integration](https://yoohooplugins.com/plugins/zapier-integration/?utm_source=plugin&utm_medium=wordpress&utm_campaign=zapier_integration)

#### When Last Login in your Language

We need your help to translate When Last Login into your locale. To translate When
Last Login, simply visit [https://translate.wordpress.org/projects/wp-plugins/when-last-login](https://translate.wordpress.org/projects/wp-plugins/when-last-login)

#### Track Your Members Better

You are able to track which members login to your site by simply sorting your default
user’s list according to when last the user was seen in easily readable text such
as “X Min/Hours/Days/Weeks/Months/Years”.

#### Plugins that When Last Login integrates with

Here is a list of plugins we currently support:

 * [Paid Memberships Pro](https://www.paidmembershipspro.com/)
 * [Two Factor Authentication](https://wordpress.org/plugins/two-factor/)

If you have a plugin and would like to integrate with When Last Login, please open
a support thread.

#### Need Help

Something not working as intended or have a question about functionality of When
Last Login. [Open a support thread](https://wordpress.org/support/plugin/when-last-login)

## 螢幕擷圖

 * [[
 * When Last Login – User’s list custom last login field with sorting according 
   to “Last Login” time.
 * [[
 * When Last Login – Show top 3 user login (includes ‘administrators’ in free version)

## 安裝方式

 1. Upload the plugin files to the ‘/wp-content/plugins’ directory, or install the 
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Navigate to ‘All Users’ and data will be showing under ‘Last Seen’
 4. Users that have not yet logged in with ‘When Last’ active will show Never.

## 常見問題集

### What does When Last Login do exactly?

When Last Login allows you to see when last users have logged into your WordPress
website. This is great for big sites that require user management.

### Is When Last Login GDPR ready?

Since version 1.0, we have made it easier to be GDPR compliant. With this being 
said, you need to take the necessary steps in order to become GDPR compliant – we
are not a law firm!

### Does this work with 2FA?

Yes, this integrates with the [Two Factor Authentication](https://wordpress.org/plugins/two-factor/)
plugin.

### Is this plugin free?

Yes, When Last Login is a free plugin for WordPress. We are looking into possibilities
of creating a Pro version with a lot more features around the user data of WordPress
users. We rely heavily on donations to keep all of our plugins free. If you wish
to donate, please click on the donation link on the WordPress repository.

### Where is the When Last Login settings page?

The settings page is found under the menu item ‘When Last Login’ within the WordPress
dashboard.

### How can I remove data I no longer need?

Inside your WordPress dashboard, navigate to ‘When Last Login’ -> ‘Settings’. Under
the ‘Tools’ heading, you will have a couple of actions that you can run, such as
clear old login records, clear all login records and clear IP Addresses.

### I have installed When Last but users are showing “Never” under “Last Login”?

This is because users have not logged in since you have activated “When Last Login”.
By default we set the “Last Login” to “Never” but this can be easily changed. Once
a user logs into your site, their profile will be updated from “Never” to a timestamp.

### I have updated and lost my ‘Login Records’ link in the WordPress dashboard

As of version 0.6 the ‘Login Records’ has been moved under the ‘Users’ link in the
admin dashboard.
 Version 0.7 introduced a settings page menu item. The ‘Login Records’
can now be found under the ‘When Last Login’ menu item.

### How can I hide the ‘All Login Records’?

Inside your WordPress dashboard navigate to ‘When Last Login’ -> ‘Settings’ and 
deselect this option.

### How can I hide the ‘Top 3 Users’ widget?

Add the following snippet of code to your theme’s functions.php or custom plugin–
add_filter( ‘when_last_login_show_admin_widget’, ‘__return_false’ );

## 使用者評論

![](https://secure.gravatar.com/avatar/989824b0e7508599671c7f979acc5f858c1a8313c0ae0e6a11a5d26bb3639805?
s=60&d=retro&r=g)

### 󠀁[So useful](https://wordpress.org/support/topic/so-useful-147/)󠁿

 [Cyrille Sanson](https://profiles.wordpress.org/css31/) 2026 年 5 月 24 日

Thank you very much. It may not seem like much, but it’s priceless.

![](https://secure.gravatar.com/avatar/a434049268aaa4e20daf549926d1d872ca9db4dfbd189db2bfb8612e44703326?
s=60&d=retro&r=g)

### 󠀁[Excelente](https://wordpress.org/support/topic/excelente-4159/)󠁿

 [joseortegafig](https://profiles.wordpress.org/joseortegafig/) 2025 年 6 月 30 
日 1 則留言

Es lo que estaba buscando para ver cuándo entran mis alumnos al sistema.

![](https://secure.gravatar.com/avatar/cd14a5cbd1f4e8a0dd2c8d11bb86434410e4a94e0400d291e5a13d8fdeb48a64?
s=60&d=retro&r=g)

### 󠀁[Added just the info I needed](https://wordpress.org/support/topic/added-just-the-info-i-needed/)󠁿

 [mctvaz](https://profiles.wordpress.org/mctvaz/) 2025 年 3 月 9 日

I needed to know when users most recently logged in to the site. That’s what this
plugin offered, with no extra stuff.

![](https://secure.gravatar.com/avatar/b9a182d38d921269ac718934cd3409ec69a6030d4ab9b3a12fa45da7acc870b2?
s=60&d=retro&r=g)

### 󠀁[Works](https://wordpress.org/support/topic/works-2162/)󠁿

 [flyingkites](https://profiles.wordpress.org/flyingkites/) 2024 年 2 月 26 日 1
則留言

I like this plugin as it keeps track of logins in a very simple way. I used it in
conjustion with “Show modified Date in admin lists” to keep track of what users 
are doing.

![](https://secure.gravatar.com/avatar/97126a0413912eca72bb5cc81f24861d03c05b7cbd5720f65dd9a0f3ce688b9c?
s=60&d=retro&r=g)

### 󠀁[Popunder in code source…. be careful](https://wordpress.org/support/topic/popunder-in-code-source-be-careful/)󠁿

 [klixtorg](https://profiles.wordpress.org/klixtorg/) 2022 年 10 月 19 日 2 則留言

This plugin has a popunder code inside. Be careful. Just delete it and the issues
are resolved.

![](https://secure.gravatar.com/avatar/cd4bf5ad28b1eb36e0cc0c73fda49a08bb6e024e8ee5e743eb0dca0c8e6080b1?
s=60&d=retro&r=g)

### 󠀁[very helpful](https://wordpress.org/support/topic/very-helpful-1099/)󠁿

 [pagrob](https://profiles.wordpress.org/pagrob/) 2021 年 8 月 27 日

it also works very well with version 5.8 WP and gives you the ability to immediately
see users who have been inactive for a long time

 [ 閱讀全部 37 則使用者評論 ](https://wordpress.org/support/plugin/when-last-login/reviews/)

## 參與者及開發者

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

參與者

 *   [ Andrew Lima ](https://profiles.wordpress.org/andrewza/)
 *   [ Yoohoo Plugins ](https://profiles.wordpress.org/yoohooplugins/)
 *   [ Travis ](https://profiles.wordpress.org/travislima/)

〈When Last Login〉外掛目前已有 5 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/when-last-login/contributors)
為這個外掛做出的貢獻。

[將〈When Last Login〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/when-last-login)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/when-last-login/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/when-last-login/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/when-last-login/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/when-last-login/)。

## 變更記錄

#### 1.2.3 – 2025-07-21

 * ENHANCEMENT: Added support for 2FA plugin.

#### 1.2.2 – 2023-02-28

 * SECURITY: Added in nonce for hiding the admin notice shown on the settings page.
 * BUG FIX: Fixed minor issue where admins weren’t being correctly excluded from
   the user query for the login widget.

#### 1.2.1 – 2021-09-21

 * Enhancement: Removed admin users from being tracked in WLL dashboard statistics.
 * Bug Fix: Issue with order by not correctly set in the dashboard statistics.

#### 1.2

 * Security: Added nonces to settings page.
 * Enhancement: Moved notice from all dashboard pages to only show on dashboard 
   page.
 * Enhancement: All login records functionality improvement to support PHP 7.4 –
   Thanks [@walle98](https://github.com/walle89)

#### 1.1

 * Enhancement: Support Privacy Changes coming to WordPress 4.9.6
 * Enhancement: Additional Hooks added.

#### 1.0

 * Enhancement: Changed admin icon for menu.
 * Enhancement: Added in tools to delete existing data from WordPress dashboard.
 * Enhancement: Added in IP Anonymization for IP address tracking to support GDPR.
 * Bug Fix: Removed IP address column from users table, if not recording IP’s.
 * Enhancement/Bug Fix: General speed improvements where possible.

#### 0.9

 * Enhancement: Multisite Support – Dashboard widget
 * Enhancement: Multisite Support – User activity is now visible in the network 
   admin’s ‘Users’ page
 * Bug Fix: Fixed an undefined variable when logging in

#### 0.8

 * Enhancement: If enabled, user’s IP address is availableon the ‘Users’ profile
   page
 * Enhancement: If enabled, user’s IP address is recorded on registration
 * Improvements to add-ons page
 * Enhancement: User IP address is now visible for each login record if enabled

#### 0.7

 * New Feature: Settings page introduced
 * New Feature: Ability to record a user’s IP address when logging in
 * Enhancement: Login Records moved under the ‘When Last Login’ menu item
 * New Hook Added: ‘wll_settings_admin_menu_item’
 * New Hook Added: ‘wll_logged_in_action’

#### 0.6

 * Enhancement: Moved ‘All Login Records’ underneath ‘Users’ link in dashboard.
 * Filter: ‘when_last_login_show_records_table’. Accepts boolean (default: true).
 * Filter: ‘when_last_login_show_admin_widget’. Accepts boolean (default: true).

#### 0.5

 * Enhancement: Ability to see which users have logged in and at what times ( Custom
   Post Type ) – @jarrydlong
 * Bug Fix: return default value for column data if no data is found – @seagyn
 * Enhancement: Improved code readability

#### 0.4

 * Enhancement: Dashboard widget added to display top users with user count.

#### 0.3

 * Enhancement: Implemented multi language support and a couple of language files.
 * Language Support: French, Spanish, German and Italian

#### 0.2

 * Bug Fixes: fixed missing ‘static’ on function ‘sort_by_login_date’
 * Error Handling: Check if ‘Paid Memberships Pro’ is installed, if not return from
   the function

#### 0.1

 * First Release

## 中繼資料

 *  版本 **1.2.3**
 *  最後更新 **6 個月前**
 *  啟用安裝數 **50,000+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/when-last-login/)、[Dutch (Belgium)](https://nl-be.wordpress.org/plugins/when-last-login/)、
   [English (South Africa)](https://en-za.wordpress.org/plugins/when-last-login/)、
   [English (US)](https://wordpress.org/plugins/when-last-login/)、[French (France)](https://fr.wordpress.org/plugins/when-last-login/)、
   及 [Russian](https://ru.wordpress.org/plugins/when-last-login/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/when-last-login)
 * 標籤:
 * [last logged in](https://tw.wordpress.org/plugins/tags/last-logged-in/)[last login](https://tw.wordpress.org/plugins/tags/last-login/)
   [last seen](https://tw.wordpress.org/plugins/tags/last-seen/)[user login](https://tw.wordpress.org/plugins/tags/user-login/)
   [user login time](https://tw.wordpress.org/plugins/tags/user-login-time/)
 *  [進階檢視](https://tw.wordpress.org/plugins/when-last-login/advanced/)

## 評分

 4.7 星，滿分為 5 星

 *  [  34 個 5 星使用者評論     ](https://wordpress.org/support/plugin/when-last-login/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/when-last-login/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/when-last-login/reviews/?filter=3)
 *  [  2 個 2 星使用者評論     ](https://wordpress.org/support/plugin/when-last-login/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/when-last-login/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/when-last-login/reviews/)

## 參與者

 *   [ Andrew Lima ](https://profiles.wordpress.org/andrewza/)
 *   [ Yoohoo Plugins ](https://profiles.wordpress.org/yoohooplugins/)
 *   [ Travis ](https://profiles.wordpress.org/travislima/)

## 技術支援

最近 2 個月解決的問題:

     總計 3 個問題，已解決 2 個

 [檢視技術支援論壇](https://wordpress.org/support/plugin/when-last-login/)

## 贊助

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

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4GC4JEZH7KSKL)