Support » Plugin: WP-Post-Meta-Revisions » How to use this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    To add multiple keys to have their meta revisioned, try the following:

    function add_meta_keys_to_revision( $keys ) {
        array_push( $keys,  'uname', 'suspision', 'profile_summary' );
    
        return $keys;
    }
    add_filter( 'wp_post_revision_meta_keys', 'add_meta_keys_to_revision' );

    hope that helps.

    It does but at the same time yields

    Name is empty

    if I try to restore, also doesn’t show the changes just the post title.

    So this plugin is broken…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use this?’ is closed to new replies.