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, 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
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



