How to find out who changed something on your WordPress site

On sites with more than one administrator, editor or client login, the question comes up sooner or later: who changed this? A page disappears, permalinks break, a plugin is suddenly inactive. Here is where to look.

What WordPress records by itself

  • Post and page revisions: open the post, then the Revisions panel, to see who saved each version and when.
  • The Trash: trashed posts and pages stay there for 30 days by default, so a “missing” page may simply be in the Trash.
  • Last modified by: the posts list and editor show who last edited an item.

What WordPress does not record

Out of the box, WordPress keeps no history for many of the changes that cause real trouble:

  • Plugin and theme activations, deactivations and updates
  • Changes to settings such as the site URL, permalinks or timezone
  • User role changes and new administrator accounts
  • Failed login attempts
  • Menu and widget changes

Use an activity log

An activity log (or audit trail) records these events as they happen: who did it, when, from which IP address, and what exactly changed. When something breaks, you open the log and filter by date instead of guessing.

Pastmark activity log showing WooCommerce product, order and setting changes
An activity log shows who did what and when, with the exact change. Shown here: Pastmark.

When choosing one, check that it:

  1. Stores logs in your own database rather than sending them to a third party.
  2. Masks sensitive values such as passwords and API keys.
  3. Lets you exclude noisy events and set a retention period.
  4. Can alert you about important events, like a new administrator account.
Pastmark Pro alert rules for new administrators, failed logins and critical events
Alert rules in Pastmark Pro: get notified about events like a new administrator account or repeated failed logins.

Tip: Pastmark logs logins, content edits, plugin and theme changes, settings and WooCommerce activity, and keeps everything in your own database. The free version is on WordPress.org.

Leave a Comment

Your email address will not be published. Required fields are marked *