Title: REST API Custom Fields
Author: Make
Published: <strong>2019 年 7 月 19 日</strong>
Last modified: 2020 年 8 月 14 日

---

搜索插件

![](https://ps.w.org/rest-api-custom-fields/assets/banner-772x250.png?rev=2125638)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/rest-api-custom-fields/assets/icon.svg?rev=2125638)

# REST API Custom Fields

 作者：[Make](https://profiles.wordpress.org/integromat/)

[下载](https://downloads.wordpress.org/plugin/rest-api-custom-fields.zip)

 * [详情](https://cn.wordpress.org/plugins/rest-api-custom-fields/#description)
 * [评价](https://cn.wordpress.org/plugins/rest-api-custom-fields/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/rest-api-custom-fields/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/rest-api-custom-fields/#developers)

 [支持](https://wordpress.org/support/plugin/rest-api-custom-fields/)

## 描述

This plugin enhances WordPress REST API v2 responses about metadata.

## 屏幕截图

 * [[
 * Settings pane

## 安装

 1. Upload “rest-api-custom-fields” folder to the “/wp-content/plugins/” directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. New item “REST API Custom Fields” appears in the admin menu (under the Settings
    menu). There you can select which metadata you want to contain in the REST API 
    response.

## 评价

![](https://secure.gravatar.com/avatar/de46ac8aba3c1e3cf6e476d77765d6cdba0803016583b8575033d3297b66a9cf?
s=60&d=retro&r=g)

### 󠀁[Heaven sent!](https://wordpress.org/support/topic/heaven-sent-4/)󠁿

 [dallinchase](https://profiles.wordpress.org/dallinchase/) 2022 年 10 月 29 日

Simple but great plugin. It allowed me to add everything I needed from my CPT fields
to the WP rest API v2. Thank you guys!

![](https://secure.gravatar.com/avatar/75fde943561b59909958fb8809793c2c2a8ea356644dc201108c7262090c0b29?
s=60&d=retro&r=g)

### 󠀁[Excellent tool, but needs to be deactivated…](https://wordpress.org/support/topic/excellent-tool-but-needs-to-be-deactivated/)󠁿

 [Damien](https://profiles.wordpress.org/damienmaurer/) 2021 年 5 月 2 日

This is truly excellent. It makes adding fields to the Rest API easy. However, there’s
the slight issue that it slows down every. single. page. by 3-5 seconds because 
it makes a terribly slow SQL query on EVERY admin page. So I use it when I need 
it. Then I quickly deactivate it.

![](https://secure.gravatar.com/avatar/bda07ea11e6cfec18c50f75600cf3c2d880a6382f999bf8e247627d179fcd29a?
s=60&d=retro&r=g)

### 󠀁[Time saver](https://wordpress.org/support/topic/time-saver-282/)󠁿

 [agent3bood](https://profiles.wordpress.org/agent3bood/) 2021 年 1 月 29 日

Simple to use, does what is says.

![](https://secure.gravatar.com/avatar/c6ce4481baf0ea12d11eb2467eeb2eacf9ced91d61d66ecf544edaaf97ea01f1?
s=60&d=retro&r=g)

### 󠀁[Absolutely amazing.](https://wordpress.org/support/topic/absolutely-amazing-85/)󠁿

 [dpw1](https://profiles.wordpress.org/dpw1/) 2020 年 10 月 27 日

Extremely simple to use and effective, just plain plug-and-play style. Thank you
very much for the amazing app.

![](https://secure.gravatar.com/avatar/d82ca748828bcdb5714343d730f9bd343b6d40ac62bf91e83ea98659c885dcb0?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!](https://wordpress.org/support/topic/great-plugin-27126/)󠁿

 [talsh272](https://profiles.wordpress.org/talsh272/) 2020 年 7 月 22 日

Spared me a lot of headache. Thank you!

![](https://secure.gravatar.com/avatar/c31d350a7ce032fe38ab3cce1d84e0187eba59e3a4b1ace8696948eafd50f992?
s=60&d=retro&r=g)

### 󠀁[Fantastic plugin](https://wordpress.org/support/topic/fantastic-plugin-1237/)󠁿

 [onito000](https://profiles.wordpress.org/onito000/) 2019 年 12 月 22 日

Hey bro, you created an awesome plugin. Your plugin solved all my issues, thank 
you so much, my friend.

 [ 阅读所有8条评价 ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/)

## 贡献者及开发者

「REST API Custom Fields」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Make ](https://profiles.wordpress.org/integromat/)

[帮助将「REST API Custom Fields」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/rest-api-custom-fields)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/rest-api-custom-fields/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/rest-api-custom-fields/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/rest-api-custom-fields/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/rest-api-custom-fields/)。

## 更新日志

#### 1.3

 * It is now possible to expose custom fields of custom post types

#### 1.2

 * Exposed values can now contain arrays
 * Attributes representing custom fields moved directly under the top-level node
   in the response

#### 1.1

 * Fixed db prefix

#### 1.0

 * Init version

## 额外信息

 *  版本 **1.3**
 *  最后更新：**6 年前**
 *  活跃安装数量 **900+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/rest-api-custom-fields/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[endpoint](https://cn.wordpress.org/plugins/tags/endpoint/)
   [Endpoints](https://cn.wordpress.org/plugins/tags/endpoints/)[rest](https://cn.wordpress.org/plugins/tags/rest/)
   [rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/rest-api-custom-fields/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=4)
 *  [  2 条 3 星评价     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/rest-api-custom-fields/reviews/)

## 贡献者

 *   [ Make ](https://profiles.wordpress.org/integromat/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/rest-api-custom-fields/)