Communitygithub.com

ACF 自訂欄位 REST 公開器

透過 WordPress REST API,使用 register_rest_field 和 acf_format_value 公開 Advanced Custom Fields 資料。支援重複欄位、彈性內容佈局及圖片庫欄位,並進行正確的序列化處理。

ACF 自訂欄位 REST 公開器 是什麼?

這個技能讓 Advanced Custom Fields (ACF) 的資料能透過 WordPress REST API 完整公開。它使用 `register_rest_field` 註冊 ACF 欄位,並透過 `acf_format_value` 確保資料格式正確,特別針對重複欄位、彈性內容佈局和圖片庫欄位進行適當的序列化處理。對開發者而言,此技能極其實用,因為它簡化了前端應用或第三方服務存取 ACF 資料的流程,無需編寫額外的自訂端點。支援 WordPress REST API 的標準請求方法,其中 POST 請求需要身份驗證才能更新 ACF 欄位。透過 OPTIONS 請求,還能檢視資料物件的綱要,包含 ACF 欄位的詳細屬性。此技能適用於任何整合 ACF 的 WordPress 站台,並可搭配 Claude Code、Cursor 或 Codex 等 AI 代理工具使用。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/agentskillexchange/skills/tree/main/skills/acf-custom-fields-rest-exposer

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

ACF 自訂欄位 REST 公開器 是做什麼的?

透過 WordPress REST API,使用 register_rest_field 和 acf_format_value 公開 Advanced Custom Fields 資料。支援重複欄位、彈性內容佈局及圖片庫欄位,並進行正確的序列化處理。

安裝

上游的需求與注意事項:

  • POST 請求允許您更新任何 ACF 欄位,但需要先進行身份驗證才能執行請求。

基本使用或快速入門說明:

  • 在以下範例中,我們設定了一個名為 book 的自訂文章類型,以及一個適用於所有書籍的 ACF 欄位群組,包含作者(文字)、作者簡介(WYSIWYG)和作者頭像(圖片)欄位。我們會為每本書新增資料...

  • 對 WordPress REST API 端點執行 OPTIONS 請求,可以檢視該資料物件的綱要,即可用的欄位及其屬性。對於 ACF 欄位,這可以讓您查看以下欄位的詳細資訊...

  • 在上述範例文章中,發出 OPTIONS 請求將回傳書籍的綱要,包含我們設定的 ACF 欄位資料。

  • 來源:https://www.advancedcustomfields.com/resources/wp-rest-api-integration/

文件

來源

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Academic Paper Citation Network Mapper

Builds citation networks from Semantic Scholar API and CrossRef DOI metadata. Visualizes paper influence graphs using NetworkX, identifies seminal works, and tracks research lineage across fields.

ACF Extended for Advanced Custom Fields Workflows

An ASE skill built around ACF Extended, the WordPress enhancement suite for Advanced Custom Fields that adds field types, admin improvements, front-end forms, options pages, and developer tooling. It is a practical fit for agents working inside complex WordPress content models and custom field workflows.

ACF to Gutenberg Block Migrator

Converts Advanced Custom Fields field groups into native Gutenberg blocks using the ACF Block API v2 and @wordpress/scripts build pipeline. Maps ACF repeaters, groups, and flexible content to InnerBlocks and block attributes with server-side rendering via acf_register_block_type().

Activepieces Open Source Workflow Automation

Activepieces is an open-source, self-hostable workflow automation platform with 200+ integrations. It provides a visual builder for creating automated workflows and exposes all its connectors as MCP servers for AI agent use.

ActivityWatch Cross-Platform Automated Time Tracker and Producti

ActivityWatch is a privacy-first, open-source automated time tracker that records application usage, browser activity, and AFK status across Windows, macOS, and Linux. With 16k+ GitHub stars, it provides detailed productivity analytics without sending data to external servers.

act Local GitHub Actions Runner

act is an open-source CLI tool that runs GitHub Actions workflows locally using Docker, enabling fast feedback on workflow changes without pushing to GitHub. It is a standard tool for local Actions development and testing.

Add a browser review checkpoint before risky agent actions with

Use AgentClick when an agent should pause before risky commands, plans, drafts, or code changes so a human can inspect, edit, approve, or reject them in a purpose-built browser UI.

Add Claude design-system and accessibility workflows with UX/UI

Use UX/UI Agent Skills when Claude should generate tokens, component specs, accessibility audits, and framework-specific UI code from a repeatable design workflow.

Add executable smoke tests for shell scripts and CLIs before ref

Use Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refactor, release, or incident fix goes out.

Add graph-backed memory and context retrieval to agent workflows

Use Cognee to ingest project knowledge into graph and vector memory so agents can retrieve durable context across sessions and workflows.

Add IDE-style semantic code navigation and symbol-safe refactors

Give a coding agent symbol-aware lookup, cross-file rename, and structural edit tools before it starts making brittle text-only changes.

Add managed long-term memory to LangGraph agents with LangMem

Give LangGraph agents memory management and search tools so they can store, retrieve, and update durable facts across sessions.

Add multimodal lifelong memory to MCP and Python agents with Sim

Use SimpleMem to store, compress, index, and retrieve text or multimodal memories for agents through MCP or Python integrations.

Add persistent project memory and hook-driven synthesis with Cla

Keep Claude Code sessions grounded in prior decisions, project context, and daily handoff notes instead of starting from zero every time.

Add Postgres-native vector retrieval to agent and RAG workflows

Store embeddings beside application data in Postgres, create vector indexes, and query nearest neighbors for semantic search, RAG, recommendations, or agent memory retrieval.

Address GitHub PR review comments from the current branch with g

Find the open PR for the current branch, gather unresolved review comments, and drive a focused comment-resolution workflow with gh-authenticated context.

Add runtime guardrails to TypeScript agents with VoltAgent

Use VoltAgent to intercept, validate, and enforce input/output policies in TypeScript agent workflows.

Add temporal context memory to agent workflows with Zep

Use Zep as an external context layer for agents that need to store events, assemble temporal graph context, and retrieve relevant memory before model calls.

Adobe Firefly API Batch Image Generator

Calls Adobe Firefly

Adobe Photoshop API Batch Processor

Automates image editing workflows via the Adobe Photoshop API (Firefly Services). Supports smart object replacement, action playback, and PSD layer manipulation at scale.

相關技能