Sekura REST Bridge for ACF

外掛說明

Sekura REST Bridge for ACF securely exposes Advanced Custom Fields in the WordPress REST API. Based on ACF to REST API by Aires Goncalves, rebuilt with security as a first-class concern.

The original ACF to REST API plugin exposes all ACF field data to unauthenticated requests, including options pages (which often contain API keys and secrets), user profile fields, and fields on private/draft posts. This plugin fixes that with proper WordPress capability checks on every endpoint.

Features

  • Proper permission checks on every endpoint
  • Per-field Show in REST API / Edit in REST API toggles
  • Works alongside ACF Pro’s native REST support
  • Drop-in replacement for ACF to REST API (same acf/v3 namespace)
  • Filterable permissions for custom access control

Endpoints

  • GET /wp-json/acf/v3/{post_type}/{id} – Get ACF fields for a post
  • GET /wp-json/acf/v3/{post_type}/{id}/{field} – Get a specific field
  • PUT /wp-json/acf/v3/{post_type}/{id} – Update ACF fields
  • GET /wp-json/acf/v3/options/{id} – Get ACF options page fields
  • GET /wp-json/acf/v3/users/{id} – Get ACF fields for a user
  • GET /wp-json/acf/v3/comments/{id} – Get ACF fields for a comment

ACF data is also appended as an acf key on standard WP REST API responses.

安裝方式

  1. Upload the sekura-rest-bridge-for-acf folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Ensure Advanced Custom Fields is installed and active

常見問題集

Does this work with ACF Pro?

Yes. Sekura REST Bridge for ACF works alongside ACF Pro’s native REST support and overrides it to provide consistent access control.

Is this a drop-in replacement for ACF to REST API?

Yes. It uses the same acf/v3 namespace and acf response key. Deactivate the old plugin and activate this one.

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Sekura REST Bridge for ACF〉的開發相關工作。

參與者

將〈Sekura REST Bridge for ACF〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.0

  • Initial release
  • Secure permission checks on all endpoints
  • Per-field REST API visibility toggles
  • ACF Pro compatibility