=== Last Login Info === Contributors: hardikhuptechdev Tags: users, login, user management, last login, admin Requires at least: 5.5 Tested up to: 6.8 Requires PHP: 7.2 Stable tag: 2.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Displays the last login timestamp of each user in the WordPress admin Users table, with tools to export and manage login data. == 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 == 1. Upload the plugin files to the `/wp-content/plugins/last-login-info` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Go to "Users" in the WordPress admin — you’ll see a new "Last Login" column. 4. Visit **Settings → Last Login Info** to configure display and export options. == Frequently Asked Questions == = Does this plugin track failed logins? = No. It only records successful logins. = Does it track logins via REST API or programmatic logins? = Only interactive logins via the WordPress login page (`wp-login.php`) or login form trigger the tracking. = Can I reset the login data? = Yes, go to Settings → Last Login Info and click the "Reset Login Data" button. = Can I export login data? = Yes, the plugin provides a CSV export of all users and their last login details. == 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. == Upgrade Notice == = 2.0.0 = Major update: Reset and Export tools added to the settings page.