acfcustomfieldsrestexposer
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "acfcustomfieldsrestexposer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-deb261edf89bd5fa3b211624a9a8788fd16cf07d82f280d928d2f034549d31c3. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/acf-custom-fields-rest-exposer before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Expose Advanced Custom Fields data to the WordPress REST API using register_rest_field and acf_format_value. Handles repeater fields, flexible content layouts, and gallery fields, and performs appropriate serialization.
Introduction source: third_party · user_3c6cb52e · 1.1.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "ACF Custom Fields REST Exposer"
slug: "acf-custom-fields-rest-exposer"
version: "1.1.0"
displayName: "ACF 自定义字段 REST 暴露器"
summary: "通过使用 register_rest_field 和 acf_format_value 将 Advanced Custom Fields 数据暴露到 WordPress REST API。处理重复字段、灵活内容布局和图库字段,并进行适当的序列化。"
license: "MIT"
description: "通过使用 register_rest_field 和 acf_format_value 将 Advanced Custom Fields 数据暴露到 WordPress REST API。处理重复字段、灵活内容布局和图库字段,并进行适当的序列化。"
verification: "security_reviewed"
source: "https://www.advancedcustomfields.com/resources/wp-rest-api-integration/"
author: "1991513ccie-png"
category: "WordPress & CMS"
framework: "Cursor"ACF 自定义字段 REST 暴露器
通过使用 register_rest_field 和 acf_format_value 将 Advanced Custom Fields 数据暴露到 WordPress REST API。处理重复字段、灵活内容布局和图库字段,并进行适当的序列化。
安装
来自上游的要求和注意事项:
- POST 请求允许您更新任何 ACF 字段,且需要您进行身份验证以执行请求。
基本用法或入门说明:
-
在以下示例中,我们配置了一个自定义文章类型 book ,以及一个用于所有书籍的 ACF 字段组,包含作者(文本)、作者简介(WYSIWYG)和作者图像(图像)字段。我们将为每本书添加数据...
-
对 WordPress REST API 端点执行 OPTIONS 请求允许您查看该数据对象的模式,即可用字段及其属性。对于 ACF 字段,它允许您查看 f...
-
在我们上面的示例文章中,执行 OPTIONS 请求将返回书籍的模式,包括我们设置的 ACF 字段的数据。
-
Source: https://www.advancedcustomfields.com/resources/wp-rest-api-integration/
文档
Current listing version
1.1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 WordPress 开发中 ACF 字段与 REST API 集成的实际痛点
- 适用于需要对外暴露自定义字段的开发者场景
Areas to improve
-
触发词不全 Reported severity: Minor
description 描述了功能但未提供具体触发关键词或命令,用户难以通过自然语言准确触发该 Skill
Recommendation: 补充明确的触发词,如 'expose ACF fields to REST API'、'ACF REST integration' 等,并在 description 中显式列出
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档提供了基本用法说明,但缺少完整的端到端执行示例和明确的步骤划分
Recommendation: 添加完整的 Phase 划分(如 Phase 1: 配置 ACF 字段组, Phase 2: 注册 REST 字段, Phase 3: 验证输出),并提供一个完整的示例流程
Highlights
- frontmatter 完整,包含版本、作者、来源等关键信息
- 提供了官方文档链接,便于用户深入查阅
Areas to improve
-
异常处理不足 Reported severity: Minor
未覆盖主要异常情况(如字段不存在、权限错误、序列化失败等),也未提及不可逆操作的确认机制
Recommendation: 补充常见异常的处理建议,并对 POST 更新等不可逆操作增加确认提示机制
Highlights
- 工具来源明确,引用 ACF 官方资源,可信度高
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- www.advancedcustomfields.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.