Home › Forums › Front-end Issues › No revision when update from front end › Reply To: No revision when update from front end
I’ve tested the plugin, and did a small changes to make it loop through all the meta fields in the post “I have many”
function add_meta_keys_to_revision( $keys ) {
$fields = get_fields();
$count=0;
if( $fields )
{
foreach( $fields as $field_name => $value )
{
$field = get_field_object($field_name, false, array('load_value' => false));
$keys[$count] = $field_name;
$count++;
}
}
return $keys;
}
add_filter( 'wp_post_revision_meta_keys', 'add_meta_keys_to_revision' );
it works fine, however im getting error in the revision page
version in F:\EasyPHP-12.1\www\hot\wp-content\plugins\advanced-custom-fields-pro\core\revisions.php on line 272
also I noticed I have 2 revision every time i make a modification one with no meta-data and the other with.
I hove the next update will have a fix for this old bug based on this plugin
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.