Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

CF Revision Manager

Add versioning to registered post meta fields when post revisions are made. This is currently a developer library, not an end-user plugin.

Registering Your Post Meta

The plugin includes a registration function to easily include your post-meta in the revision scheme.

function my_registered_post_meta_item() {
    if (function_exists('cfr_register_metadata')) {
add_action('init', 'my_registered_post_meta_item');
Prettifying Your Post Meta

By default the post meta is run through print_r (if its an object or array) and then through htmlspecialchars. Register a callback function along with your post meta key to override the default display of your post meta in the revision screen.

It's a 2 step process. Step 1: create your function to format your output:

function prettify_my_postmeta($postmeta) {
    // make the post meta data presentable
    return $postmeta;

Step 2: add the function as a handler for your desired post meta key. It's a best practice to wrap this in an additional hook to fire at 'init' because this can be added in any plugin or theme and we want to make sure that the Revision Manager has been loaded first.

function my_registered_post_meta_item() {
    if (function_exists('cfr_register_metadata')) {
        cfr_register_metadata('my_metadata_key', 'prettify_my_postmeta');
add_action('init', 'my_registered_post_meta_item');

Requires: 3.1 or higher
Compatible up to: 3.1.4
Last Updated: 6 years ago
Active Installs: 40+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.