Last Login Info
Last Login Info
Description
Last Login Info is a lightweight plugin that helps administrators see when users last logged into the site.
This plugin adds a “Last Login” column to the Users table in the WordPress admin. It tracks and displays each user’s last login time, with either human-readable formatting (e.g., “2 days ago”) or full date/timestamp. The column is sortable, making it easier to find inactive users.
The settings page under Settings Last Login Info allows you to customize the date format, exclude roles, export data to CSV, or reset all login records.
Features
- Adds a new “Last Login” column to the Users admin screen.
- Tracks login time on successful user login.
- Choose between human-readable or full timestamp display.
- Exclude specific roles from being tracked (e.g., Administrator).
- Export all user logins to CSV.
- Reset all login tracking data.
- Sortable column by last login time.
- Lightweight, no bloat.
Installation
- Upload the plugin files to the
/wp-content/plugins/last-login-infodirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Go to “Users” in the WordPress admin — you’ll see a new “Last Login” column.
- Visit Settings Last Login Info to configure display and export options.
Faq
No. It only records successful logins.
Only interactive logins via the WordPress login page (wp-login.php) or login form trigger the tracking.
Yes, go to Settings Last Login Info and click the “Reset Login Data” button.
Yes, the plugin provides a CSV export of all users and their last login details.
Reviews
Super helpful
By Gaurav Oza (gauravoza) on April 23, 2025
I used your plugin and it’s absolutely awesome super helpful, easy to use, and saved me tons of time.
Changelog
2.0.0
- Added a Reset Login Data button to clear all last login data for users.
- Added a CSV Export feature to download usernames, emails, roles, and last login times.
1.1.0
- Added a settings page under “Settings Last Login Info”.
- Admins can now toggle between human-readable and full timestamp display.
- Option to exclude specific user roles (e.g., Administrator, Editor) from login tracking.
1.0.0
- Initial release.