Retention per category
The free plugin has one global retention number. This adds a number per category, applied by a daily job on top of it.
| Category | Events |
|---|---|
auth | login_*, logout, session_*, 2fa_* |
account | user_*, role_*, password_*, email_*, profile_*, registration_*, account_* |
content | post_* |
site | plugin_*, theme_*, core_* |
Set with compliance.retention.<category>, in days. 0 keeps that category forever.
The reason to split them: content events are high-volume and low-value after a month, while account events — who was made an administrator, whose role changed — are exactly what an audit asks about two years later. One number forces you to keep too much of the first or too little of the second.
Two worked configurations
Starting points, not verdicts — the lawful basis is yours to establish.
Data-minimising (GDPR-lean). Hold as little as defensible, and make what you hold smaller:
| Setting | Value | Why |
|---|---|---|
compliance.retention.auth | 90 | Long enough to investigate a late report, short enough to defend |
compliance.retention.account | 365 | Role and account changes carry audit weight for a year |
compliance.retention.content | 30 | High volume, low value after a month |
compliance.retention.site | 90 | Plugin and core changes matter for incident timelines |
| IP anonymisation | on | The strongest lever — reduces the claim instead of managing it |
Audit-heavy (regulated or contractual). Keep the account trail effectively forever, purge the noise, and prove integrity:
| Setting | Value | Why |
|---|---|---|
compliance.retention.auth | 365 | A year of sign-in evidence |
compliance.retention.account | 0 (forever) | The rows an auditor asks about two years later |
compliance.retention.content | 90 | Still the noise category |
compliance.retention.site | 365 | Change history for the platform itself |
| Chain verification | scheduled | A break is noticed, not discovered |
| Anchoring | scheduled, published off-server | The part a server compromise cannot rewrite |
With the second configuration, pair the forever category with IP anonymisation — keeping *what happened* forever does not require keeping *from which address* forever.
Chain verification
Runs the hash chain and reports one of four states per range:
- Verified — hashes match, chain intact
- Broken — a row was altered or removed outside the plugin
- Purged — removed by retention, with the purge's own record to prove it
- Unverifiable — written before the chain existed, or under a different key
That fourth state is the honest one, and it is why verification is useful. A tool that reported "unverifiable" as "verified" would be lying, and one that reported it as "broken" would cry wolf on every site that has ever rotated a salt.
Verification can run on a schedule, so a break is noticed rather than discovered.
Anchoring
Publishes the chain head somewhere you do not control.
This is what closes — as far as it can be closed — the gap named on the tamper-evidence page: an attacker who owns the server has the key and can rewrite the chain. What they cannot do is retract a hash that was already published elsewhere. If today's anchor does not descend from last week's published one, something happened in between.
Anchoring runs on a schedule, and the itxuo_chain_anchor and itxuo_chain_anchor_delivered hooks let you send the anchor wherever you want it to go.
Anchoring is only as good as the independence of where you publish it. An anchor posted to a service on the same server is not an anchor.
GDPR tooling
Wired into WordPress's own privacy tools rather than parallel to them, so an existing export or erasure request picks up this plugin's data automatically.
- Export — a subject's activity records included in the standard personal-data export
- Erasure — handled through the standard eraser
Erasure and an append-only audit log pull in opposite directions, and no plugin can resolve that for you. Removing somebody's rows breaks the chain for that range; keeping them means retaining personal data after a valid request. The plugin gives you both operations and records which one you chose. The decision — and the lawful basis for it — is yours.
IP anonymisation is often the better lever: it reduces what you hold in the first place, which is a stronger position than deleting it well.
Exports
Tamper-evident log export carrying the chain hashes, so a file handed to an auditor stays checkable after it leaves your site.