FieldLock Sync Guard for ACF

外掛說明

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.
  • Disables the Update button on ACF field-group 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.

安裝方式

  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.

常見問題集

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; } );

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈FieldLock Sync Guard for ACF〉的開發相關工作。

參與者

將〈FieldLock Sync Guard for ACF〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release.