=== Last Login Column ===
Contributors: snehalpancholi
Tags: users, last login, user management, admin column, login tracking
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a sortable "Last Login" column to the Users admin screen showing when each user last logged in, with a human-readable time difference.

== Description ==

Last Login Column tracks when each user last logged into WordPress and surfaces that information directly on the **Users** admin screen as a sortable column.

**Key Features:**

* Automatically captures login timestamp when any user logs in
* Sortable "Last Login" column on Users → All Users
* Displays human-readable time difference — e.g., "3 days ago"
* Full date/time tooltip on hover
* Shows "Never" for users who have never logged in
* Zero configuration required — works immediately on activation
* No admin settings page needed; purely passive data collection
* Stored in native WordPress user meta (`addlc_llc_last_login`)

**Use Cases:**

* Identify inactive or dormant accounts
* Audit administrator activity
* Find users who have never logged in (potential orphan accounts)
* Support user lifecycle management and cleanup workflows

== Installation ==

1. Upload `last-login-column` to `/wp-content/plugins/`.
2. Activate through **Plugins → Installed Plugins**.
3. Visit **Users → All Users** to see the new column.

== Frequently Asked Questions ==

= Does it track logins that happened before activation? =
No — timestamps are recorded from the moment the plugin is activated.

= Does it affect login performance? =
No — it adds a single `update_user_meta()` call on login, which is negligible.

= What happens to the data when I uninstall? =
All `addlc_llc_last_login` user meta values are deleted during uninstall.

= Can I sort by last login? =
Yes — click the "Last Login" column header to sort ascending or descending.

== Screenshots ==

1. The Users list table with the sortable Last Login column showing relative timestamps.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
