Title: REST API Toolbox
Author: Pete Nelson
Published: <strong>2016 年 4 月 16 日</strong>
Last modified: 2025 年 1 月 2 日

---

搜索插件

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

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

![](https://ps.w.org/rest-api-toolbox/assets/icon-128x128.png?rev=1396954)

# REST API Toolbox

 作者：[Pete Nelson](https://profiles.wordpress.org/gungeekatx/)

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

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

 [支持](https://wordpress.org/support/plugin/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?

## 评价

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

### 󠀁[Superb utility. Thanks.](https://wordpress.org/support/topic/superb-utility-thanks-2/)󠁿

 [Robert Doyle](https://profiles.wordpress.org/robert-doyle/) 2025 年 4 月 18 日

Superb utility. Thanks ! Needs to be part of Core WP.

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

### 󠀁[Come back pls](https://wordpress.org/support/topic/come-back-pls/)󠁿

 [Héctor Cruz](https://profiles.wordpress.org/wishec/) 2024 年 5 月 23 日

amazing plugin

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

### 󠀁[Lightweight and strong](https://wordpress.org/support/topic/lightweight-and-strong/)󠁿

 [immwi](https://profiles.wordpress.org/immwi/) 2021 年 6 月 8 日

A very usable plugin for under the hood tweaking and enhanced security.

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

### 󠀁[This should be in WP core, indeed](https://wordpress.org/support/topic/this-should-be-in-wp-core-indeed/)󠁿

 [dratiols](https://profiles.wordpress.org/dratiols/) 2020 年 1 月 1 日

Amazing, and easy to use. Lovee it!

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

### 󠀁[This Toolbox is a Great Tool](https://wordpress.org/support/topic/this-toolbox-is-a-great-tool/)󠁿

 [KTS915](https://profiles.wordpress.org/kts915/) 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!

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

### 󠀁[Works really well](https://wordpress.org/support/topic/works-really-well-81/)󠁿

 [Luke Cavanagh](https://profiles.wordpress.org/lukecavanagh/) 2017 年 2 月 7 日

Adds options to disable the REST API as well as disable endpoints.

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

## 贡献者及开发者

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

贡献者

 *   [ Pete Nelson ](https://profiles.wordpress.org/gungeekatx/)

「REST API Toolbox」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/rest-api-toolbox/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.4.4 January 2nd, 2025

 * Fixed deprecated notices for PHP 8 (props @thefrosty).

#### 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

## 额外信息

 *  版本 **1.4.4**
 *  最后更新：**1 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rest-api-toolbox/) 、 [Swedish](https://sv.wordpress.org/plugins/rest-api-toolbox/)
   和 [Ukrainian](https://uk.wordpress.org/plugins/rest-api-toolbox/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/rest-api-toolbox)
 * 标签
 * [json api](https://cn.wordpress.org/plugins/tags/json-api/)[rest](https://cn.wordpress.org/plugins/tags/rest/)
   [rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)[wp-rest-api](https://cn.wordpress.org/plugins/tags/wp-rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/rest-api-toolbox/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Pete Nelson ](https://profiles.wordpress.org/gungeekatx/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://petenelson.io/)