Home › Forums › Feature Requests › Automatic Synchronized Json › Reply To: Automatic Synchronized Json
With the code from jessepearson, I can’t manage the new fields in ACF (they are not visible) and they can’t be added by syncing as there’s not sync option anymore. Did this work at some point, jessepearson?
I tried to continue on this code, but got nowhere so far. It would be great if ACF added a hook to run the complete sync process so we would be able to do something like this:
function acf_sync_fields_complete($upgrader_object = null, $options = null) {
if ($options['action'] == 'update' && $options['type'] == 'theme' ) :
do_action('acf_sync_json_options');
endif;
}
add_action( 'upgrader_process_complete', 'acf_sync_fields_complete', 10, 2);
Note: Above code is not working
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.