Skip to content
Select theme
Get Started

Last Login Column

Summarize with AI

Last Login Column adds a sortable Last Login column to Users -> All Users so admins can see who has been active recently - without installing a separate user-tracking plugin.

When enabled, it:

  • Records a timestamp on every successful wp_login into user meta wpps_last_login_on.
  • Shows a Last Login column on the Users list, formatted with your site’s date and time settings.
  • Displays “Never” when no login has been stored for that user yet.
  • Makes the column sortable so you can order by most or least recent login.

It does not change how people log in, and it has no settings screen.

Enable it if:

  • You manage many users and need a quick activity glance in wp-admin.
  • You want to spot stale accounts before cleanup or audits.
  • Agencies need a lightweight “who’s been in lately” view for client sites.
  1. In WordPress admin, go to WP PowerSuite -> Modules.
  2. Filter by Login & Users or search for “Last Login Column”.
  3. Turn the module’s toggle on.

That’s it - there are no settings. To undo it, toggle the module off (the column disappears; existing meta is left in place unless you clean it up separately).

  • Go to Users -> All Users. ✅ Working: a Last Login column is visible.

Log out and log back in as a test user, then refresh Users.

  • ✅ Working: that user shows a recent date/time instead of Never.

Click the column header to confirm sorting works.

  • Column missing. Confirm the module is enabled. On the Users screen, open Screen Options and ensure the column isn’t unchecked.
  • Everyone shows Never. Expected until each user logs in at least once after the module was enabled.
  • Time looks wrong. The display uses your WordPress Settings -> General date/time formats and timezone.

Prefer the command line? You can turn this module on or off with WP-CLI instead of the dashboard:

Terminal window
# Turn the module on
wp powersuite module enable last-login-column
# Turn the module off
wp powersuite module disable last-login-column
# Check whether it is on, its category, and where its settings live
wp powersuite module get last-login-column

Managing more than one site? Add --url=https://example.com to point a command at one site. If this is a Pro module, install WP PowerSuite Pro and activate your license first. New to WP-CLI? See the full command guide.

Does Last Login Column have any settings?

No. It is a simple on/off toggle. Enable it and the column appears on Users -> All Users.

Why do some users show Never?

Never means no successful login has been recorded since the module started tracking. Older logins before enablement are not backfilled.

Where is the last login time stored?

In user meta as wpps_last_login_on (Unix timestamp), updated on the wp_login action.

Can I sort the Users table by last login?

Yes. The Last Login column is sortable. Click the column header to order by most or least recent login.

Developer notes (hooks & filters)

Source: modules/last-login-column/module.php. Boots on the critical tier. Context: admin, frontend, login, ajax. Implements DataLocationsInterface (user_meta -> wpps_last_login_on).

  • add_action( 'wp_login', ... , 3, 2 ) -> update_user_meta( $id, 'wpps_last_login_on', time() ).
  • Admin: manage_users_columns, manage_users_custom_column, manage_users_sortable_columns, pre_get_users (sort by meta_value_num), and a small column width style on users.php.