前言介紹
- 這款 WordPress 外掛「REST API Helper」是 2016-08-18 上架。
- 目前有 800 個安裝啟用數。
- 上一次更新是 2022-01-02,距離現在已有 1216 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
JSON | ionic | json api | rest-api | Mobile App |
內容簡介
此外掛可協助 REST API 顯示精選媒體來源、作者、類別和自訂欄位。
此外掛是為Ionic Mobile App Builder製作的,適用於 Ionic 框架。
此外掛還支援在 metabox 中顯示自訂欄位,並且僅允許跨域請求 json 檔案。相容於 wp-restapi2 和 json-api。
功能:
- 產品清單無需 Woo API
- REST-API Auth Basic
- 修復 CORS 和 Preflight CORS(例如此問題:Request header field ……. is not allowed by Access-Control-Allow-Headers in preflight response.)
- Woo ACF 圖庫
- 圖庫JSON陣列或物件
- One Signal 推播
- 自訂欄位支援
- 修復 VisualComposer ([vc_row]Hello World . . .[/vc_row]) 渲染問題
WooCommerce
若要啟用 Woo 產品和類別無需授權,請在 wp-config.php 中加入此代碼
define("IMH_WOO", true);
您可以更改圖庫的自訂欄位(預設 Woo 使用 _product_image_gallery metakey),加入此行代碼
define("IMH_WOO_ACF_GALLERY", 'images');
和改為物件或字串格式(預設為字串,用逗號分隔)
define("IMH_WOO_ACF_GALLERY_OBJECT", false);
OneSignal 送出器
若要啟用 OneSignal 送出器,請在 wp-config.php 中加入此代碼
define("IMH_ONESIGNAL_PUSH", true);
然後修正您的 app_id 和 app_key
define("IMH_ONESIGNAL_PUSH", false);
define("IMH_ONESIGNAL_PAGE_IN_APP", 'post_singles'); //這個是其他資料(key:page and value:post_singles/post_id)
define("IMH_ONESIGNAL_APP_ID", '31ee45e2-c63d-4048-903a-89ca43f3afa2');
define("IMH_ONESIGNAL_APP_KEY", 'YzUzNmZkOTAtMmVlMC00OWIzLThlNGQtMzQyYzzyNmFhZjcw');
匿名留言
您可以使用以下設定允許匿名留言:
define("IMH_ALLOW_PREFLIGHT_CORS",true); //Method post 必需
define("IMH_ANONYMOUS_COMMENTS",true);
使用以下網址送出留言:
http://wordpress.co.id/wp-json/wp/v2/comments?author_name=Your Name [email protected]&author_name=Your Name Here&content=Your Comment Here&post=20
註冊REST-API
您可以使用以下設定允許註冊新用戶:
define("IMH_RESTAPI_REGISTER",true);
端點:
https://wordpress.co.id/wp-json/wp/v2/users/register
Visual Composer
修復 VisualComposer 內容呈現問題
回應應是:
[vc_row]Hello World . . .[/vc_row]
正確的回應是:
Hello World . . .
在 wp-config.php 中加入此代碼
define("IMH_VC_SHORTCODE",true);
鳴謝
Ihsana Global Solusindo
IMA BuildeRz – Ionic Mobile App Builder + Code Generator
iWP-DevToolz – WordPress Plugin Maker + Code Generator
原文外掛簡介
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 [email protected]&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
IMA BuildeRz – Ionic Mobile App Builder + Code Generator
iWP-DevToolz – WordPress Plugin Maker + Code Generator
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「REST API Helper」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WPMobile.App 》WPMobile.App 可以建立您的 WordPress 網站的 Android 和 iPhone-iPad 原生行動應用程式,並允許您在 Google Play 和 App Store 上發布它。, 我們的 Android ...。
Community by PeepSo – Download from PeepSo.com 》PeepSo 是一個超輕且免費的社交網絡外掛程式,可以讓你快速及輕鬆地在 WordPress 網站內建立社交網絡或線上社群。PeepSo 非常高效和易用,類似於 Facebook 的...。
AppPresser – Mobile App Framework 》AppPresser 可協助網站建立者簡單又快速地將 WordPress 網站製作成 iOS/Android 行動應用程式。, AppPresser 可讓您使用 WordPress 網站作為應用程式,包括存...。
Androapp – Native Android mobile app for wordpress site 》AndroApp 是一個為 Android 平台開發的原生手機應用程式,能夠在幾分鐘內為您的 WordPress 博客創建一個漂亮的手機應用程式,不需要任何編程知識。, , 只需幾...。
MobiLoud – WordPress Mobile Apps – Convert your WordPress Website to Native Mobile Apps 》MobiLoud 是一款外掛,可讓使用者將 WordPress 網站轉換為 iOS 和 Android 手機和平板電腦的高質量應用程式,並發布至 App Store 和 Google Play 市場。, 請...。
WP-AppKit – Mobile apps and PWA for WordPress 》重要提示 ✋:自 1.5.3 版本開始,我們不再支援原生 iOS app。這是一個艱難的選擇,請在此處了解更多。, 具有漸進式 Web App(PWA)支援:1.5x 版本的釋出已...。
Push Notification for Post and BuddyPress 》p>此外掛使用 Firebase Cloud Messaging (FCM) 從網站、Android/iOS 行動應用程式中傳送推播通知。此外掛具有 REST API 功能,可與原生/混合 Android/iOS 行...。
MobiLoud – Smart App Banners 》我們開發了這個外掛,讓你可以在 WordPress 網站上使用智能應用程式橫幅,以增加 iOS 和 Android 應用程式的下載量。只有使用行動裝置瀏覽你的網站時,智能應...。
Mobile App Canvas – Convert your Website Into an App for iOS and Android 》MobiLoud 的 Mobile App Canvas 解決方案可將任何 WordPress 網站輕鬆轉換為原生移動應用,並為您發布到 App Store 和 Google Play。, 使用 MobiLoud,我們可...。
Appmaker WP – Convert WordPress to Native Android & iOS App 》Appmaker WP 可以幫助您在幾分鐘內將 WordPress 新聞網站或 WP 雜誌轉換為本機 iOS 和 Android 移動應用程序。您只需要安裝 Appmaker 的 WordPress 移動應用...。
Add Smart App Banner 》這個外掛程式會在網站頂部增加一個安裝手機應用程式的按鈕。, 支援 Android 和 Windows。, Smart Banners 是移動裝置的一個新特色,可以從網站推廣應用程式在...。
IdeaPress – Turn WordPress into Mobile Apps (Android, iPhone, WinPhone) 》想要將 WordPress 網站轉換成 Android、iOS、Winphone 與 Windows app 嗎?試試看 IdeaPress 外掛,它支援 WordPress.com 和自託管網站,讓您可以輕鬆打造美...。
APPExperts – Mobile App Builder for WordPress | WooCommerce to iOS and Android Apps 》APPExperts 是一個免費和高級混合使用的行動應用程式建構工具,可讓你將支援 WordPress 的網站轉換成適用於 iOS 和 Android 手機、平板電腦和其他行動裝置的...。
WPSSO Mobile App Meta Tags 》, Apple Store / iTunes 和 Google Play App 的元標籤。, 透過在 Apple 的行動版 Safari 中使用橫幅廣告來推廣您網站的行動應用程式。, 在行動應用程式產品頁...。
Mobile App Editor – WordPress to Android App Builder 》本外掛為 WordPress 和 WooCommerce 的本地 Android 應用程序生成器。在 WordPress 控制台內建立您的本地移動應用程序,無需聘請移動應用程序開發人員。從您...。