Plugin info

Total downloads: 15,339
Active installs: 400
Total reviews: 5
Average rating: 4.2
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 7/17/2023 (898 days ago)
Added to WordPress: 12/4/2014 (11 years old)
Minimum WordPress version: 4.1
Tested up to WordPress version: 6.2.8
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 898 days ago • 5 reviews

22/100

Is WP-Post-Meta-Revisions abandoned?

Possibly abandoned (last update 898 days ago).

Compatibility

Requires WordPress: 4.1
Tested up to: 6.2.8
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

This plugin implements a post meta revisioning feature as arrived at in https://core.trac.wordpress.org/ticket/20564.

The goal of releasing this code as a plugin is to allow as many people as possible to easily test the post meta revisioning feature, and also hopefully move towards inclusion of the feature into core, following the Features as Plugins model.

Further development of the code for this plugin will continue on its GitHub repository. Pull requests welcome!

To use this plugin, you must be running WordPress 4.1 or newer, two hooks were added in 4.1 that are required for this implementation.

To revision a post meta, you add its key via a filter:

function add_meta_keys_to_revision( $keys ) {
    $keys[] = 'meta-key-to-revision';
    return $keys;
}
add_filter( 'wp_post_revision_meta_keys', 'add_meta_keys_to_revision' );

Features:

  • Allows for a whitelisted array of ‘revisioned’ meta keys (which can change at any time)
  • A revision for the meta is stored on save (if the meta value has changed)
  • A meta revision save (if changed) is also triggered during auto-saves
  • Restoring a revision restores the revisioned meta field’s values at that revision (including auto-saves)
  • Supports storing of multiple values for a single key (and restoring them)
  • Adds revisioned meta to the preview data via get_post_metadata
  • Includes unit tests demonstrating feature
  • Travis CI tests integrated with GitHub repository, props @mattheu

Installation

No installation instructions available

Frequently Asked Questions

No FAQ available

Review feed

Ryan Hellyer
9/3/2016

Freakin' sweet!

DUDE! Why did I never think of this before? This is an awesome idea! I haven't even installed the plugin and you are getting five stars straight off the bat for solving a problem I didn't even know I had. Thanks :)
Dennis Bareis
4/2/2023

Doesn't work in 6.2, lots of PHP warnings etc

I assume it used to work, didn't work for me.

Screenshots

Changelog

2.0.0

  • Post meta storage mechanism simplified to use copy approach. This change updates the way meta is stored on the revision to mirror the meta on the post it is created from. props @aaemnnosttv, see https://github.com/adamsilverstein/wp-post-meta-revisions/pull/56.
    NOTE: This is a breaking change – restoring revisions saved in the previous format may result in the array of values restored as a single value rather than adding a value for each item in the array. The storage of single meta values is unaffected.

1.0.0

Tagging release as 1.0.

1.0.0

  • Simplify by no longer storing whitelist per revision.

0.1.9

  • Initial release.