Title: WP REST API Helper
Author: MD. Rabiul Islam Robi
Published: <strong>2020 年 3 月 29 日</strong>
Last modified: 2021 年 3 月 14 日

---

搜索插件

![](https://ps.w.org/wp-rest-api-helper/assets/banner-772x250.jpg?rev=2268238)

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

![](https://ps.w.org/wp-rest-api-helper/assets/icon.svg?rev=2268238)

# WP REST API Helper

 作者：[MD. Rabiul Islam Robi](https://profiles.wordpress.org/rabiulislamrobi/)

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

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

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

## 描述

A plugin to help out the default WordPress REST API Data.

### Credits

Please visit my YouTube Channel. I publish WordPress development related videos 
regularly. The channel name is [Robiz Show](https://www.youtube.com/channel/UCxn-5T3PreCovWDUW-iJTVA?view_as=subscriber)

### Features

Post & Pages

Endpoint: 
 http://your-site.com/wp-json/wp/v2/posts  http://your-site.com/wp-json/
wp/v2/pages

 * Get feature image url of a post. [ Full, Large, Medium, Thumbnail ]
 * Get publish date in a human readable format.
 * Get author details which includes user_nicename, user_url.
 * Get post terms object. That includes term id, name, slug, description, parent,
   post count and url.

### Posts

Endpoint: http://your-site.com/wp-json/wp/v2/posts

 * Featured image source stated as  `featured_image_src`  with multiple variations[
   Full, Large, Medium, Thumbnail ].
 * Post published date in more readable format stated as   `published_on`  (e.g:
   Feb 20, 2020)
 * Author details stated as  `author_details`.
 * Post terms stated as  `post_terms` . This contains an array of objects of the
   terms.

### Pages

Endpoint: http://your-site.com/wp-json/wp/v2/pages
 * Featured image source stated
as  `featured_image_src`  with multiple variations [ Full, Large, Medium, thumbnail).

### Menus

Endpoint: http://your-site.com/wp-json/wp/v2/menus
 * Provides full menu list of
a theme based on menu location. object contains parent and its child information.

### Widgets

Endpoint: http://your-site.com/wp-json/wp/v2/widgets
 * Provides the widget area
list associated with the widgets.

### General Info

Endpoint: http://your-site.com/wp-json/wp/v2/general
 * Provides the general information
about the site.

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Upload the plugin files to the `/wp-content/plugins/wp-rest-api-helper` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->Plugin Name screen to configure the plugin
 4. (Make your instructions match the desired user flow for activating and installing
    your plugin. Include any steps that might be needed for explanatory purposes)

## 评价

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

### 󠀁[Nice plugin for adding widgets to REST API!](https://wordpress.org/support/topic/nice-plugin-for-adding-widgets-to-rest-api/)󠁿

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

Just used this and it saved me a lot of time by adding some of the commonly used
widgets to the REST API, like categories and recent posts. Thanks!

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

## 贡献者及开发者

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

贡献者

 *   [ MD. Rabiul Islam Robi ](https://profiles.wordpress.org/rabiulislamrobi/)

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

### 对开发感兴趣吗?

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

## 更新日志

Release Version – 1.0.0

 * Initial release.

Release Version – 2.0.0

 * Internal plugin structure changed.

Release Version – 2.0.1

 * Plugin updater added.

Release Version – 2.0.2

 * Permission callback fixed for the REST API.
 * In post author details updated.
 * In page author details updated.
 * In menus type_label & slug updated.

## 额外信息

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

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ MD. Rabiul Islam Robi ](https://profiles.wordpress.org/rabiulislamrobi/)

## 支持

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

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