Support

Account

Home Forums Backend Issues (wp-admin) check from «outside the plugin» if ACF syncs are ready to execute

Solved

check from «outside the plugin» if ACF syncs are ready to execute

  • Hi

    This situation is probably familiar to many users. You’re developing a theme with ACF-Fields stored as JSON-Files and you deployed a new state and forgets to sync the ACF fields.

    Now I have searched in the plugin code, but unfortunately NO public function found, with which I could check out of the functions.php, if there are any ACF syncs ready to execute.

    Is that true or am I wrong?

    If that’s true, would it be possible to include such a feature in one of the next releases?

    That would be great 🙂

  • I’m not sure what it is that you’re looking for.

    1) If you upload new JSON files to a site then the JSON files will override the groups stored in the database.
    2) There is no reason to sync these field groups unless you plan to edit them on the site you uploaded them to
    3) If you still want to auto syn field groups then you might want to look at this https://support.advancedcustomfields.com/forums/topic/automatic-synchronized-json/

  • Hi John

    1) I was not aware that the fields are automatically synced.
    2) Ok
    3) Thanks for the link. I’ll take a closer look!

    Best – p

  • Fields are not automatically synced. The fields in the JSON files will be loaded before the fields in the database, thus overriding what is in the DB.

    The only time that this is not the case is when you edit a field group. When you edit the field group then it is loaded from the DB and the JSON file is ignored. This is why you need to sync the group before you make any changes to it in the admin.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘check from «outside the plugin» if ACF syncs are ready to execute’ is closed to new replies.