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

REST API Toolbox

描述

Allows tweaking of several REST API settings

  • Disable the REST API
  • Remove WordPress core endpoints
  • Require authentication for core endpoints
  • Force SSL
  • WP-CLI commands: wp rest-api-toolbox

Find us on GitHub at https://github.com/petenelson/wp-rest-api-toolbox

(Creative commons toolbox image provided by James Tworow https://www.flickr.com/photos/sherlock77/)

屏幕截图

  • General admin settings
  • WordPress core settings

安装

  1. Upload rest-api-toolbox to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Visit the Settings -> REST API Toolbox page to customize

常见问题

Have any questions? We can answer them here?

评价

2017 年 11 月 5 日
This plugin enables three different settings for each REST API endpoint: No authentication required, Authentication required, or Not available at all. It also makes it possible to force https and to disable JSONP. So, together with proper authentication methods and appropriate permissions, this plugin ensures that the REST API can be used without compromising security. Thank you!
2016 年 12 月 13 日
The last update comes perfectly in time with the release 4.7. This plugin is perfect if you don’t use the REST API yet or if you don’t want your data to be accessed without your consent.
阅读所有7条评价

贡献者及开发者

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

贡献者

「REST API Toolbox」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

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

对开发感兴趣吗?

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

更新日志

1.4.3 March 25th, 2021

  • No longer check for SSL when running any WP-CLI commands.

1.4.2 February 13th, 2017

  • Fixed bug in requiring authentication for endpoints that accessed specific items (ex: /wp/v2/users/1)

1.4.1 January 16th, 2017

  • Added settings support for No Custom Post Types
  • Fixed undefined variable notice (props @funkolector)

1.4.0 January 13th, 2017

  • Added support for removing or requiring authentication for custom post types.
  • Updated Settings UI for better clarity.
  • Added link to settings page from the plugins list page.

1.3.0 December 12th, 2016

  • Added option to require authentication for core endpoints.

1.2.0 December 5th, 2016

  • Updated the way the REST API can be disabled due to the rest_enabled filter being deprecated.
  • Added ‘settings’ to the list of core endpoints that can be removed.
  • Added CLI command: wp rest-api-toolbox status

1.1.0 April 16, 2016

  • Change REST API prefix
  • Remove specific core endpoints
  • Disable JSONP

1.0.0 April 15, 2016

  • Initial release