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

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.

评价

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!
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.
2020 年 10 月 27 日
Extremely simple to use and effective, just plain plug-and-play style. Thank you very much for the amazing app.
2019 年 12 月 22 日
Hey bro, you created an awesome plugin. Your plugin solved all my issues, thank you so much, my friend.
阅读所有8条评价

贡献者及开发者

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

贡献者

将“REST API Custom Fields”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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