Title: REST API Helper
Author: JasmanXcrew
Published: <strong>2016 年 8 月 19 日</strong>
Last modified: 2022 年 1 月 2 日

---

搜索插件

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

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

# REST API Helper

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

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

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

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

## 描述

This plugin help REST API for display featured media source, author, categories,
and custom fields.
 This plugin is made for [Ionic Mobile App Builder](https://goo.gl/qznlXo),
suitable used for ionic framework. This plugin also support for display custom field
in metabox and also make it allow crossorigin only for json files. Compatible with
wp-restapi2 and json-api.

Features:
 * Product listing without Woo API * REST-API Auth Basic * Fix CORS and
Preflight CORS (Example Issue: Request header field ……. is not allowed by Access-
Control-Allow-Headers in preflight response.) * Woo ACF Gallery * Gallery JSON Array
or Object * One Signal Push * Custom Field Support * Fix issue render VisualComposer([
vc_row]Hello World . . .[/vc_row])

### Woocommerce

for enable Woo product and categories without authorization, add this code in wp-
config.php

    ```
    define("IMH_WOO", true);
    ```

You can changing custom field for gallery (default woo using _product_image_gallery
metakey), add this line

    ```
    define("IMH_WOO_ACF_GALLERY", 'images'); 
    ```

and for type data object or string (default string, separator with coma)

    ```
    define("IMH_WOO_ACF_GALLERY_OBJECT", false);
    ```

### OneSignal Sender

for enable oneSignal Sender add this code in wp-config.php

    ```
    define("IMH_ONESIGNAL_PUSH", true);
    ```

then fix your app_id and app_key

    ```
    define("IMH_ONESIGNAL_PUSH", false);
    define("IMH_ONESIGNAL_PAGE_IN_APP", 'post_singles'); //this additional data (key: page and value: post_singles/post_id)
    define("IMH_ONESIGNAL_APP_ID", '31ee45e2-c63d-4048-903a-89ca43f3afa2');
    define("IMH_ONESIGNAL_APP_KEY", 'YzUzNmZkOTAtMmVlMC00OWIzLThlNGQtMzQyYzzyNmFhZjcw');
    ```

### Anonymous Comments

You can allow anonymous comments using configuration:

    ```
    define("IMH_ALLOW_PREFLIGHT_CORS",true); //required for method post
    define("IMH_ANONYMOUS_COMMENTS",true);
    ```

send comment using url like this:

    ```
    http://wordpress.co.id/wp-json/wp/v2/comments?author_name=Your Name Here&author_email=your-email-address@website-address-here.com&author_name=Your Name Here&content=Your Comment Here&post=20
    ```

### Register REST-API

You can allow register new user using configuration:

    ```
    define("IMH_RESTAPI_REGISTER",true); 
    ```

End Point:

    ```
    https://wordpress.co.id/wp-json/wp/v2/users/register
    ```

### Visual Composer

Fix issue render VisualComposer Content

Response is:
 [vc_row]Hello World . . .[/vc_row] Response should be:

Hello World . . .

add this code in wp-config.php

    ```
    define("IMH_VC_SHORTCODE",true);
    ```

### Credits

 * [Ihsana Global Solusindo](https://ihsana.com)
 * [IMA BuildeRz – Ionic Mobile App Builder + Code Generator ](https://cn.wordpress.org/plugins/rest-api-helper/ihsana.com/i/?u=imabuilder)
 * [iWP-DevToolz – WordPress Plugin Maker + Code Generator ](https://ihsana.com/i/?u=iwpdev)

## 安装

 1. Unzip and Upload `rest-api-helper.zip` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

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

### 󠀁[Very helpful!](https://wordpress.org/support/topic/very-helpful-762/)󠁿

 [marcodedo](https://profiles.wordpress.org/marcodedo/) 2019 年 8 月 16 日

It helps me especially with image nodes

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

## 贡献者及开发者

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

贡献者

 *   [ JasmanXcrew ](https://profiles.wordpress.org/jasmanxcrew/)

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

### 对开发感兴趣吗?

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

## 更新日志

here are some of the changes that have been made:

    ```
    Changelog 1.7 
    * add option page
    * content render for shortcode visual composer

    Changelog 1.8 
    * add woo support

    Changelog 2.1.1 
    * fix woo issue

    Changelog 2.1.2 
    * add custom field support

    Changelog 2.1.3 
    * add custom field for gallery support 

    Changelog 2.1.4 
    * fix permalink for woo

    Changelog 2.1.5 
    * Add onesignal sender

    Changelog 2.1.6 
    * Add Woocommerce attributes

    Changelog 2.1.7 
    * Fix issue attributes

    Changelog 2.1.8 
    * Improved: support Very Simple Event List

    Changelog 2.1.9 
    * Improved: for keep configuration is not lost after update, save your config in wp-config.php

    Changelog 2.2.0 
    * Add Basic Auth Support

    Changelog 2.2.1 
    * Add preflight support for post

    Changelog 2.2.2 
    * Add OneSignal Sender Page

    Changelog 2.2.3 
    * Add option allow anonymous comments

    Changelog 2.2.4 
    * Fix error on post-edit

    Changelog 2.2.5 
    * Improved content render for shortcode visual composer

    Changelog 2.2.6 
    * Fix bug: blank page on edit post

    Changelog 2.2.7 
    * Add register API

    Changelog 2.2.8 
    * Fix image featured issue
    ```

## 额外信息

 *  版本 **2.2.8**
 *  最后更新：**4 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rest-api-helper/)
 * 标签
 * [ionic](https://cn.wordpress.org/plugins/tags/ionic/)[JSON](https://cn.wordpress.org/plugins/tags/json/)
   [json api](https://cn.wordpress.org/plugins/tags/json-api/)[Mobile App](https://cn.wordpress.org/plugins/tags/mobile-app/)
   [rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/rest-api-helper/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ JasmanXcrew ](https://profiles.wordpress.org/jasmanxcrew/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://ihsana.com/)