=== Activity Log ===
Contributors: yodsira
Tags: activity log, audit, security, monitoring, users
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Who did what on your site: logins, plugin changes, post edits, user and menu updates - the 20 events that matter, with user, IP and time.

== Description ==

"Who deleted that page at 3am?" - the question every multi-author site owner asks eventually. Activity Log answers it without the weight and price of an enterprise audit suite.

The 20 events that actually matter:

* Sessions: logins, logouts, failed logins (with username)
* Plugins & themes: install, activate, deactivate, delete, updates, theme switches
* Content: post/page creation, edits, publishing, deletion; media uploads and deletions
* People: user creation, profile changes, deletion, role changes
* Structure: menu edits, widget updates, access to the theme/plugin file editors

Every row records the user, their IP and the object (type, ID, title). Autosaves and revisions never pollute the log, and duplicate events are deduplicated within a 10-second window. The free edition keeps the latest 500 events.

The Pro edition adds unlimited history with automatic retention (90/180/365 days), instant email + Telegram alerts for sensitive events (admin created, role change, file editor access, plugin installs, post deletions), CSV export and weekly summary emails.

== Installation ==

1. Upload the `activity-log` folder to `/wp-content/plugins/` or install the ZIP.
2. Activate - logging starts immediately, no configuration needed.
3. Find the list under the new "Activity Log" menu.

== Frequently Asked Questions ==

= Does it slow the site down? =

Events are written with a single indexed INSERT, duplicates are suppressed, and the free edition trims itself to 500 rows. There is no front-end footprint at all.

= What about failed logins from bots? =

They are logged with the attempted username. The 10-second dedup keeps burst noise manageable.

= Where is my history after uninstall? =

Removed with the plugin - the events table is dropped. Export to CSV (Pro) first if you need an archive.

== Changelog ==

= 1.0.0 =
* Initial release: 24 tracked events, user/IP columns, filters, pagination, autosave suppression, 10s dedup.
