Framework for storing revisions of Post Meta
|Reported by:||alexkingorg||Owned by:|
There are a couple of tickets that would seem to benefit from storing revisions of post meta (#11049, #20299). We had a need for this feature in our Carrington Build and RAMP products and built it a few years back.
It handles the storing of post meta along with revisions, as well as restoring those revisions when someone restores an older version of a post(/page/etc.). There is an API for registering the post meta keys you want to track revisions of, it does not track all post meta keys by default.
There are two versions of the code. The bare-bones revisions framework code is here:
while I started adding features to a version that would be more user-friendly plugin, allowing the users to select which post meta keys they want to track revisions for:
If this would be a valuable addition to core, I'd be happy to help polish this up in whatever manner is most helpful. I'd recommend breaking out the code I started on for the admin form and having that be the extent of the "revision manager" plugin - basically it becomes a nicer UI for selecting additional post meta keys to track revisions for.
Change History (164)
comment:41 @DrewAPicture — 2 years ago
- Keywords needs-codex added
comment:53 in reply to: ↑ 49 ; follow-up: ↓ 55 @azaozz — 2 years ago
- Keywords needs-refresh added
- Resolution fixed deleted
- Status changed from closed to reopened
comment:96 in reply to: ↑ 95 @TV productions — 16 months ago
comment:105 in reply to: ↑ 102 ; follow-up: ↓ 106 @p51labs — 12 months ago
comment:106 in reply to: ↑ 105 @adamsilverstein — 12 months ago
comment:112 in reply to: ↑ 111 @Andrew Moawad — 10 months ago
comment:122 follow-up: ↓ 123 @johnbillion — 8 months ago
- Milestone changed from Future Release to 4.1
comment:125 @johnbillion — 8 months ago
- Keywords needs-testing needs-codex dev-feedback removed
- Milestone changed from 4.1 to Future Release