FieldLock Sync Guard for ACF

Descrição

FieldLock Sync Guard for ACF detects ACF field-group JSON files that do not yet exist in the WordPress database or have a newer modified timestamp. While a sync is pending, it:

  • Shows an administrator notice with a link to ACF’s sync screen.
  • Lists each pending field group and explains why it needs syncing.
  • Disables the Update button on ACF field-group edit screens.
  • Shows an inline explanation and sync link on locked edit screens.
  • Blocks normal field-group saves on the server.

Private Local JSON files are ignored. Detection is cached briefly and runs only in the WordPress administrator. The plugin works with ACF and ACF PRO, and does not include ACF.

FieldLock Sync Guard for ACF is an independent compatibility plugin and is not affiliated with, endorsed by, or sponsored by the owners of ACF or ACF PRO.

The plugin makes no remote requests, collects no telemetry, and contains no upsells.

Instalação

  1. Upload the plugin directory to /wp-content/plugins/, or install the plugin ZIP through Plugins > Add New.
  2. Activate ACF or ACF PRO.
  3. Activate FieldLock Sync Guard for ACF.
  4. When a warning appears, follow its link and sync the pending field groups in ACF.

Perguntas frequentes

What counts as a pending sync?

A non-private group_ Local JSON item is pending when its key does not exist as an acf-field-group post in the database, or when its modified timestamp is newer than the database post’s modified timestamp.

Can lock behaviour be customized?

Yes. Developers can use these filters:

  • fieldlock_sync_guard_for_acf_should_lock changes the final lock decision.
  • fieldlock_sync_guard_for_acf_sync_url changes the notice link.
  • fieldlock_sync_guard_for_acf_cache_lifetime changes the transient lifetime in seconds.
  • fieldlock_sync_guard_for_acf_capability changes the capability used for notices and locks.

Example:

add_filter( 'fieldlock_sync_guard_for_acf_cache_lifetime', function () { return 30; } );

Avaliações

Não há avaliações para este plugin.

Colaboradores e desenvolvedores

“FieldLock Sync Guard for ACF” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Registro de alterações

1.1.0

  • List pending field groups and explain whether each group is missing or has newer Local JSON.
  • Add clearer lock messaging and a sync link to ACF field-group edit screens.

1.0.1

  • Confirmed compatibility with WordPress 7.1.

1.0.0

  • Initial release.