wp-content/plugins/salvage/salvage.php
Salvage
Find out what was deleted, when, and by whom โ and get it back.
== Description ==
The trash covers posts. It does not cover terms, users, attachments detached from their parent, or a post meta key a plugin removed during an update. Salvage records those deletions with enough context to reverse them.
Recovery restores the object and its meta, and reattaches its taxonomy terms where they still exist. Where they do not, it tells you which ones are missing rather than restoring a half-object silently.
Records are pruned on a schedule and the store is capped by size, so this cannot become the thing that fills your database while protecting you from things that fill your database.
== Screenshots ==
Numbered the way they ship in /assets/. Click any one to see it full width.
== Installation ==
- Install and activate the plugin. Recording starts immediately.
- Set your retention window under Tools โ Salvage. The default is 60 days.
- When something disappears, look there first.
It cannot recover what was deleted before it was installed. Nothing can.
== Frequently asked questions ==
Does it catch direct SQL deletions?
No. It hooks WordPress deletion actions. A plugin running raw DELETE queries is invisible to it, and the readme names the two common ones that do.
How much space does it use?
Capped at 200MB by default, oldest first. On a busy editorial site that is roughly four months.
== Changelog ==
= 1.7.2 =
- Fixed: restoring a term did not reattach it to posts that had been the only ones using it.
= 1.7.0 =
- User deletion recording, including which posts were reassigned and to whom.
= 1.4.0 =
- Size cap on the record store, so the safety net cannot become the problem.