Who Changed It? – Activity Log & Audit Trail
Activity log and audit trail: see who changed what, and when — logins, users, plugins, themes, posts, settings.
Install in
Who edited that page? Who deleted the post that was there yesterday? Who installed that plugin, switched open registration on, or created a new administrator account at three in the morning?
Who Changed It? answers those questions. It records what happens on your WordPress site and shows it as one searchable, filterable list: logins, failed logins and logouts, user and role changes, plugin and theme installs, updates, activations and deletions, core updates, theme and plugin file editor use, post, page and media edits — with the exact fields that changed — and changes to sensitive site settings.
Documentation and guides: whochangedit.com
Every event is classified
Most activity logs hand you a wall of identical rows and leave you to spot the one that matters. This one sorts every event into three levels:
- Normal — routine operation.
- Strange — unusual but not necessarily harmful (a failed login, a settings change, a login at 3 AM).
- Dangerous — high-risk activity you should look at now (brute-force login bursts, new administrator accounts, theme/plugin file editor use, open registration being switched on).
Classification is a two-stage process: every event type has a base severity, and contextual heuristics can escalate it — logins at unusual hours, logins from IP addresses never seen for that user, bursts of failed logins from one IP, bursts of deletions by one user. Every escalation is stored with a human-readable reason shown in the log and in alert emails.
Tamper-evident by design
An activity log is only worth as much as its resistance to being edited. Every record here stores a hash of its own contents plus the hash of the record before it, so changing or removing an entry breaks every link that follows and is reported on the log screen.
Legitimate deletions are not silent either: retention purges, manual purges and GDPR erasures record the span they removed, so the chain still verifies across the gap. Anything else is flagged. Redaction rewrites what a record shows while leaving the hash that sealed it intact, so honouring a privacy request never costs you the audit trail.
For evidence that holds up against database-level access, move the chain key out of the database by adding define( 'WHOCHITA_CHAIN_KEY', 'a long random string' ); to wp-config.php. The settings screen tells you which mode you are in.
Features
- Color-coded log screen with severity icons and per-severity count chips, free-text search, and filters for severity, event family, event type, user and date range
- Field-level change diffs shown inline: see exactly what changed in a post, a profile, or a setting
- Immediate email alerts for dangerous events, throttled so a brute-force attack sends one email, not hundreds
- A weekly or daily digest. One email covering the period: totals by severity, every flagged event with the reason it was flagged, the most frequent event types, whether the audit chain still verifies, and the current chain head hash to keep off the server.
- A dashboard widget. Chain status, the week’s dangerous and strange counts, and the latest flagged events — shown only to people allowed to read the log.
- WP-CLI commands.
wp whochita verify,status,tail,exportandpurge, for monitoring, scripted evidence exports and deploy checks. - Append-only and hash-chained. Each record hashes the one before it. Deleted or altered rows are detected and flagged on the log screen.
- Stays on your server. No telemetry, no third-party log store. The only thing that ever leaves your site is a notification you switched on yourself.
- Alerts where you already work. Forward flagged events to email, Slack, Discord or Telegram. Every channel is off until you paste in a destination, and a burst of events becomes one message, not hundreds.
- Retention and redaction. Per-family retention windows; mask, hash, or drop IP addresses; redact personal data to satisfy GDPR requests without breaking the chain.
- Scoped access. Reading the log is its own capability. Even administrators can be excluded from it.
- Evidence you can hand over. Export a signed, time-bounded record set as CSV or JSON for auditors and incident reports.
- Answers WordPress’s own Export/Erase Personal Data tools
- Mute individual event types to keep the log signal-heavy (events about the plugin itself can never be muted)
- WooCommerce support: prices, coupons, orders, refunds, store and payment gateway settings
- Yoast SEO, ACF and Elementor support. SEO titles and descriptions, noindex switches, Yoast site settings, ACF field group saves and deletions, and Elementor page saves — the edits the generic post hooks cannot see
- Lockora integration: record completed security-audit scores, finding counts, and score deltas when Lockora is active
- Records how a change arrived — REST API, XML-RPC, WP-CLI or WP-Cron — whenever it was not an ordinary request in wp-admin
- Extensible: log custom events, adjust severities, watch extra options, or forward events to external systems via hooks
What gets audited
Authentication (logins, failed logins, logouts, password resets, application passwords created and revoked), users and roles — including roles added or removed one at a time and capabilities granted directly to a user, outside any role — plugin and theme installs/updates/activations/deletions, Site Editor changes to block templates, template parts and global styles, WordPress core updates, WordPress 7.0 AI connector and feature changes, theme/plugin file editor use, posts, pages and media (with field-level diffs of what changed), a watched list of sensitive site options, and data exports. On WooCommerce shops: product price changes, coupon amounts, order status changes, refunds, store settings, and payment gateway configuration.
When Yoast SEO, Advanced Custom Fields or Elementor are installed, their own changes are audited too — SEO titles, meta descriptions, focus keyphrases and canonical URLs; noindex and nofollow switches; Yoast’s site-wide settings; ACF field group saves and deletions; and Elementor page saves. Each of these lives in post meta, so a generic activity log records “post updated” and reports that nothing changed.
What it does not do
It does not phone home, does not require an account, and does not send your log to anyone else’s servers. On a default install it makes no outbound network requests at all — a regression test over every shipped file enforces that, and asserts that every notification channel ships switched off.
The single exception is the one you configure. If you enable Slack, Discord or Telegram notifications, the plugin posts to that service and only that service:
- Slack — messages go to the incoming webhook you paste in, on
hooks.slack.com. Terms · Privacy - Discord — messages go to the channel webhook you paste in, on
discord.com. Terms · Privacy - Telegram — messages go to the chat ID you name, via
api.telegram.org, using your own bot token. Privacy
Webhook URLs are pinned to those hosts, so a compromised settings screen cannot redirect your log somewhere else. A notification carries the event type, object, user, IP address and time — the same fields the alert email sends, with the IP already masked to whatever privacy setting you chose. Field-level diffs are never sent.
Written by Joobi from the project's own listing. See the source page
1.0.0
- Tested with WordPress 7.1.
- Fixed: after the log was purged completely, or its newest records were purged, the next record restarted the chain at position 1 or reused a purged position, and a later purge then left the chain permanently failing verification. Chain positions are now never reused.
- Fixed: failed-login logging was limited to one record per minute for the whole site, so a brute-force burst wrote a single row and was never escalated to Dangerous. Attempts are now counted per source, a burst of five escalates, and a site-wide ceiling still bounds a flood.
- Fixed: erasing a person’s data wrote their username straight back into the record of the erasure.
- Fixed: resetting the plugin settings left previously granted roles able to read the log and left the digest timer running.
- Fixed: with timestamps shown in the site timezone, the date filters still compared against UTC days.
- Fixed: “Purge Old Data” was hidden when the default retention was “Keep all data”, even if individual families had their own deletion window.
- Security hardening: every button that changes or sends something (purge, reset, mask IPs, test messages, verify) is now a POST form and is refused over GET. Lost-password requests are sanitized and rate limited.
- New events: roles added or removed individually, capabilities granted directly to a user (Dangerous for site-takeover capabilities), application passwords created and revoked, and Site Editor changes to templates, template parts and global styles.
- Events record how they arrived when it was not an ordinary admin request: REST API, XML-RPC, WP-CLI, WP-Cron or AJAX.
- The log screen now explains SEO, ACF, Elementor, Lockora, AI connector and redaction events in plain lines instead of raw values.
- New: “Send test email” and “Send digest now” buttons, a dashboard widget, and
wp whochitacommands. - The digest email states the chain head hash, giving you a copy outside the server.
- CSV exports carry the signed manifest verbatim, and
bin/verify-export.phpin the source repository verifies an export offline with no WordPress. - Chain verification, exports and retroactive redaction read the log in bounded batches, so they stay fast and memory-safe on a large log.
0.9.0
- Yoast SEO auditing: SEO titles, meta descriptions, focus keyphrases and canonical URLs, plus the site-wide Yoast settings. Switching noindex or nofollow on a page is recorded as its own event and classified Strange, because a de-indexed page still loads and the loss usually surfaces weeks later as missing traffic.
- Advanced Custom Fields auditing: field group saves and deletions. A field group is the site’s content schema — saving one can rename or drop fields the templates read, and deleting one orphans every value stored against it.
- Elementor auditing: page and template saves. Elementor keeps its content in post meta, so the generic post record reports an edit in which nothing appears to have changed; this fills that gap. Both records are kept, and either can be muted.
- A new “SEO, fields & builders” event family, so these can be filtered, retained and purged separately from everything else.
- New weekly or daily digest email: totals by severity, every flagged event with the reason it was flagged, the ten most frequent event types, and the audit chain’s verification state. Sent on schedule even when nothing happened, so a digest that stops arriving is itself a signal.
- Integrations register nothing at all when the plugin they target is absent, and the digest ships switched off. Both are asserted by the regression suite.
0.8.0
- Forward flagged events to Slack, Discord or Telegram. Every channel ships switched off and stays inert until a destination is saved, so a default install still makes no network requests — the regression suite asserts both.
- Choose what gets forwarded: dangerous events only, dangerous and strange, or everything.
- Alert emails gained a settings screen: multiple recipients, the same severity choice, and a configurable quiet period.
- Notifications are queued and sent when the request ends, so no admin action waits on a remote service, and several events in one request arrive as a single grouped message.
- Webhook URLs are pinned to the vendor’s own host over HTTPS, so settings access cannot be turned into a request proxy. URLs and bot tokens are never written to the log or included in an export.
0.7.0
- Added optional Lockora Security Audit integration via the
lockora_scan_completedaction. The plugin watches for Lockora rather than depending on it: nothing changes if Lockora is not installed. - Lockora scan events record the current score and pass, warning, and failure counts, plus score deltas when a previous scan is available. They are classified Normal and filed under the settings family, so per-family retention applies to them.
- Minimum PHP requirement lowered from 8.1 to 7.4, so the plugin installs on older hosts.
- Renamed to “Who Changed It? – Activity Log & Audit Trail”, with the plugin description rewritten around the questions the log answers.
0.6.0
- Append-only hash chain: every record now hashes the record before it, and altered or deleted rows are detected and flagged on the log screen and settings page.
- Authorized removals — retention purges, manual purges and GDPR erasures — record the span they removed so the chain still verifies across the gap; anything else is reported as tampering.
- Per-family retention: nine event families, each able to keep the default window, set its own, or keep everything.
- Privacy controls: store IP addresses whole, masked to /24 (IPv4) or /48 (IPv6), as a keyed digest, or not at all — plus a button to mask everything already recorded.
- The log now answers WordPress’s Export and Erase Personal Data tools. Erasure redacts records instead of deleting them, so evidence about other people’s actions survives and the chain still verifies.
- Reading the log is now its own capability (
whochita_view_log), grantable per role, with a mode in which administrators have no access unless granted. - Signed evidence export in CSV and JSON, carrying each record’s chain hashes and a manifest covering the filters, time bounds, record count, chain span and verification state.
- Filter the log by event family.
- Exports can be restricted to users who can change the plugin settings.
- The chain key can be moved out of the database with the
WHOCHITA_CHAIN_KEYconstant in wp-config.php.
0.5.0
- WordPress 7.0 AI connector connections and disconnections are now audited without storing API keys.
- AI master-switch and individual WordPress AI plugin feature changes are now audited.
- Admin styles and confirmation behavior now load through the WordPress enqueue APIs.
- Plugin file metadata now uses WordPress APIs, and file-editor auditing verifies request nonces and permissions.
- Internal identifiers now use a unique plugin prefix, filtered database queries are fully prepared, and generated badge markup is escaped at output.
- Empty date filters now use valid database date boundaries, preventing MySQL DATETIME warnings on the activity-log screen.
- A renamed pre-release predecessor is detected so two installed copies cannot register duplicate menus or audit hooks.
- AI connector deletions are audited without reading API-key options, and file-editor auditing now observes the core admin lifecycle hook.
0.4.0
- Field-level change tracking: post updates now record what changed (title, slug, excerpt, author, content word counts, password protection, parent), profile updates record email/display name/website changes, and the log screen displays these diffs inline.
- Free-text search across object names, usernames, event types, IPs, and escalation reasons — the CSV export honors the search too.
- Per-event mute list in the settings: uncheck any event type to stop recording it. Events about the plugin itself can never be muted.
- WooCommerce support: product price changes (a >50% price drop escalates the severity), coupon amount changes, order status changes, refunds, store settings, and payment gateway configuration changes (classified dangerous; secret values are never stored).
0.3.0
- Configurable log retention: keep all data, or delete events older than a chosen number of days/months, with the next scheduled purge shown and a “Purge Old Data” button to run it immediately.
- Events timestamp setting: display log times in UTC or in the timezone configured on the WordPress site (storage stays UTC).
- Factory reset button for the plugin settings (log data untouched) and a purge button that wipes the activity log; the purge is recorded as the first event of the fresh log and classified as dangerous.
0.2.0
- Settings screen: restrict who can change plugin settings (only me / all administrators), grant log viewing to specific users or roles, and customize the From address and display name of alert emails.
- Severity badges now carry icons (check / caution sign / crossed circle) and the log shows clickable per-severity count chips.
- Plugin settings changes are themselves logged as auditable events.
0.1.1
- Neutralize formula-leading values in CSV exports.
- Rate-limit failed-login audit records and add the supporting query index.
- Apply database schema updates automatically after plugin updates.
0.1.0
- Initial release: activity capture, normal/strange/dangerous classification with escalation heuristics, log screen, email alerts, CSV export, retention purge.
Follow this listing's changes (Atom feed)