Title: WP Rest API Customizer
Author: ikvaesolutions
Published: <strong>2017 年 9 月 4 日</strong>
Last modified: 2022 年 9 月 21 日

---

搜索插件

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

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

![](https://ps.w.org/wp-rest-api-customizer/assets/icon-256x256.png?rev=1724144)

# WP Rest API Customizer

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

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

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

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

## 描述

WP Rest API Customizer provides an easy to use interface to modify WP rest API response.
Sometimes you may need to remove few unnecessary JSON objects from the response 
to improver performance of your application. This plugin can do it for you.

Major features in WP Rest API Customizer include:

 * Adds Large, Medium and Small featured image URL’s to JSON response.
 * Enables adding comments from third party clients without user authentication.
 * Add’s a new route to get post id from post url.
 * You can unset any object you don’t need from /wp-json/wp/v2/posts end point.

## 屏幕截图

 * [[
 * Enable new routes
 * [[
 * Modify existing routes
 * [[

## 安装

The quickest method for installing the WP Rest API Customizer is:

 1. Visit Plugins -> Add New in the WordPress dashboard.
 2. Search for `WP REST API Customizer` without quotes in search box.
 3. Click “Install”.
 4. Finally click `Activate Plugin`.
 5. Go to Settings -> WP Rest API Customizer and check the desired fields to modify
    the defualt WP API response.

If you would prefer to do things manually then follow these instructions:

 1. Extract the dowloaded plugin file.
 2. Upload the `wp-rest-api-customizer` folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to Settings -> WP Rest API Customizer and check the desired fields to modify
    the defualt WP API response.

## 常见问题

### Will my app performance increase if I uncheck all fields?

No, you should not uncheck everything without understanding their actual usage. 
Few of them might be used by your theme, other plugins are even your app.

### I enabled POST ID from POST URL custom route, how to use it?

By enabling it, you created a new route. Send a GET request to https://www.geekdashboard.
com/wp-json/wp-rest-api-customizer/url-to-id and add your post url in header with
key ‘url’

### Is enabling comments without authorization is safe?

Yes, it is completely safe. But make sure you enabled comment moderation in WordPress
settings -> Discussion to prevent spam comments.

### What is the use of adding featured image urls. I’m already getting image id’s?

It depends on your requirements. Assume you’re showing 20 recent posts with title
and feature image in your Android application. By addig featured image url’s to 
JSON object, you’re saving 20 requests and ultimately saving user’s data, your site
bandwidth and improving app performance. Presto!

### Can I create my own routes with this plugin?

Currently our plugin didn’t support creating own routes. We are planning it in next
updates. However if you need a custom router which is useful to others (like gettig
post id from post url), ask us via support. We’ll add it and update the plugin.

### How can I contribute to WP Rest API Customizer?

You can get in touch with from our [blog](https://www.geekdashboard.com/) or [contact us](https://www.geekdashboard.com/contact-us)
page and we’ll have a discussion.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ ikvaesolutions ](https://profiles.wordpress.org/ikvaesolutions/)
 *   [ Amar Ilindra ](https://profiles.wordpress.org/amarilindra/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

_Release Date – 4 September 2017_

 * Readme file updated.
 * Plugin icon updated.

#### 1.0

_Release Date – 30 August 2017_

 * Initial release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-rest-api-customizer/)
 * 标签
 * [wp-rest-api](https://cn.wordpress.org/plugins/tags/wp-rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-rest-api-customizer/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ ikvaesolutions ](https://profiles.wordpress.org/ikvaesolutions/)
 *   [ Amar Ilindra ](https://profiles.wordpress.org/amarilindra/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.me/geekdashboard/15)