Audit trail PRO
The Audit Trail records who did what, when, from which IP address, and — for changes — the value before and after. Every StoreCashier module logs its own create, update and delete actions; you can also record logins, failed logins, settings changes, module switches, user and role changes, WooCommerce order status changes, product changes and document access. Use it to answer "who changed this price?" or "who deleted that sale?", and to meet audit requirements.
Viewing the audit trail#

- Counters: Entries, Distinct users, Distinct IPs, With value changes.
- Filters: User, Role, Module, Action, Entity, Record ID, IP address, From / To, search (details, user, IP, values), per page, With diffs only.
- Columns: When, User (or System), Role, IP, Module, Action, Entity, Details, Changes. Show changes / Expand / collapse diffs show Field, Old, New.
- Export CSV (current filter).

Settings → Audit Trail#

| Setting | What it does |
|---|---|
| Audit logging | Enabled — record activity or Paused — record nothing. |
| Capture before/after value diffs | Record what changed, or log the action only. |
| Exclude actions / Exclude entity types | Keys or entity names that are never logged. |
| Events to record | Successful logins; Failed login attempts (username + IP, never passwords); Logouts; StoreCashier settings saves (with before/after values); Modules enabled / disabled; WordPress user role changes; WordPress users created / deleted; WooCommerce order status changes; WooCommerce products created / updated / deleted; Document downloads, previews and share-link access. |
| Retention (days, 0 = keep forever) / Maximum entries to keep | Older entries are removed by a daily task (oldest first when the maximum is exceeded). |
| Per-action retention overrides | "action=days" per line, e.g. keep logins for 90 days. |
| Prune Now / Prune Old Entries / Apply Saved Retention Policy Now | Manual cleanup. Permanent — cannot be undone. |
Permissions#
Store Staff → Roles → Audit Trail: View audit trail and Export & prune audit trail.
FAQ#
Does the audit trail slow the site down?
Each logged action writes one row. On very busy shops, exclude noisy actions and set a retention period.
Can someone delete their tracks?
Only users with Export & prune audit trail (or managers) can prune, and pruning removes entries by age only. Give that permission to the owner only.
Are passwords logged?
Never. Failed logins record the username and IP only.