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!
2022 was a big year for Advanced Custom Fields, with more capabilities, a new generation of ACF Blocks, a refreshed UI, and a new home. Our year in review post looks at advancements we’ve made and offers a glimpse of the future.
— Advanced Custom Fields (@wp_acf) January 6, 2023
https://t.co/HahJUCcyH4
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.