100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps

Back to Blog

The client asks who changed the pricing page

WordPress keeps revisions, so you can see what changed and when. What it does not keep is who was holding the keyboard — and on a site with six contributors those are different questions.

Operations

An email arrives on a Tuesday. *The pricing page says £49. It should say £59. Who changed it?*

You open the page, click Revisions, and there it is: the change, the timestamp, and an author. Twenty minutes of relief, until you notice the author is the account four people share, or the account the agency uses, or admin.

The revision told you *what*. It did not tell you *who*.

Two different questions

Almost every audit trail conflates them, and the distinction only becomes obvious once something has gone wrong:

  • Subject — whose thing was affected. The post's author. The user whose role changed.
  • Actor — who did it.

For most events these are the same person and the difference is invisible. The moment it matters is exactly the moment they diverge: an editor updating somebody else's draft, an administrator changing somebody else's role, an agency account acting on behalf of a client.

A log that records only one of them cannot answer the Tuesday email. And which one it records is usually an accident of implementation rather than a decision.

What WordPress gives you

More than people think, and less than they need.

Revisions cover post content. They record post_author on the revision — which, for an update, is the user who saved it. That is genuinely the actor for content edits, and it is the one place core gets this right.

What revisions do not cover is everything else. There is no revision for:

  • A role change
  • A plugin being activated
  • A theme switch
  • A setting on the checkout page
  • A user being created
  • A password being reset
  • A post being *deleted* — the revisions go with it

And revisions are pruned. WP_POST_REVISIONS defaults to unlimited, but plenty of hosts cap it, plenty of optimisation plugins clear it, and none of them ask first.

What a log should record

Both identities, on every event, always:

event       post_updated
subject     Priya Raman        ← the content's author
actor       Tom Ashcroft       ← who saved it
ip          198.51.100.19
when        14 March, 09:22

That is the row that answers the email. The one below it — the same event with a single user column — is the row that starts an argument.

The same shape applies well beyond content. *Role changed: subject James Okonkwo, actor Sarah Whitfield* is an audit trail. *Role changed: James Okonkwo* is a note.

The events worth having

Content is where the question usually starts, but it is rarely where it ends. On a real investigation you want the account events and the site events in the same list, ordered by time:

Contentpublished, updated, trashed, deleted
Accountscreated, deleted, disabled, enabled, role changed, password changed or reset, email changed, profile updated
Credentialsapplication password created, application password deleted
Siteplugin activated, plugin deactivated, theme switched, core updated
Authenticationsign-in, failure, blocked attempt, sign-out, session ended

The reason to keep them together rather than in four specialised plugins is that the interesting sequences cross the boundaries. A role change at 02:14 followed by a plugin activation at 02:15 tells a story. The same two events, in two different tools, with two different clocks and two different filters, tell nobody anything.

Filtering is what makes it usable

A log you can only scroll is a log you read once.

The filters that actually get used, in roughly this order:

  1. By actor. "Everything Tom did." This is the Tuesday email, answered.
  2. By subject. "Everything that happened to this account." Different question, equally common.
  3. By event. "Every role change this quarter."
  4. By IP address. The one you reach for when the answer to (1) is somebody who says they did not.
  5. Date range, combined with any of the above.

And then export what you filtered — not the whole table. The most common mistake in log tooling is an export button that dumps everything, which produces a file nobody opens.

The uncomfortable part

Once you can answer *who changed it*, you will occasionally get an answer somebody disputes.

At that point the question stops being "what does the log say" and becomes "can the log be trusted". A log stored as ordinary database rows can be edited by anyone with database access, and nothing about the row will indicate that it was. If you are going to show a log to a client, an auditor, or a colleague who is certain they did not do the thing, it is worth knowing what your log can and cannot prove before you rely on it.

What to check on your own site

Open whatever activity log you have and find one event where somebody acted on somebody else's thing — an editor publishing a contributor's draft is the easiest to produce.

Then ask it two questions:

  • Does the row name both people?
  • Can you filter by the one who *did* it, not just the one it happened to?

If either answer is no, your log will handle the easy Tuesdays and fail the hard one.

—

*ITX UserOps records subject and actor separately on every event, across content, accounts, credentials, sessions and site-level changes, with filtering and CSV export on both. It is in the free plugin — the activity log is documented here.*

A clearer WordPress admin
starts here.

Start with the free plugin. Add more control when you need it.

Log in

Vote on ideas, submit your own and join the discussion.