內容簡介
雖然 WooCommerce 的 REST API (v2.1+) 可以方便地與您喜愛的第三方服務進行整合,但也為使用者開放了訪問您店鋪詳細信息的門戶,包括:
訂單明細
用戶信息
產品信息
優惠券代碼
商店報告
WooCommerce API Lockdown 讓您可以通過易於使用的管理面板在整個站點或用戶基礎上限制 API 可用性。
使用方法
安裝後,在 WordPress 後端導航到“WooCommerce” ->“API Lockdown”
選擇任何站點範圍的限制
選擇任何用戶特定限制
點擊更新即可
受限用戶嘗試訪問時會發生什麼?
如果使用者嘗試訪問他們無權訪問的部分,他們將只會收到一個驗證錯誤信息。
插件的官方文檔和支持頁面
外掛標籤
開發者團隊
原文外掛簡介
While WooCommerce’s REST Api (v2.1+) allows easy integration with your favorite 3rd party services, it also opens the doors for users to access all of your store details including:
Order Details
Customer Details
Product Information
Coupon Codes
Store Reports
WooCommerce API Lockdown allows you to restrict what is available through your API on a site wide or per user basis with an easy to use admin panel.
Usage
Once installed, in your WordPress backend navigate to to ‘WooCommerce’ -> ‘API Lockdown’
Select any site wide restrictions
Select any users specific restrictions
Click update that that’s it.
What Happens when a Restricted User Tries to Gain Access?
If a user tries to access a section they don’t have access to they will simply get a Authentication Error.
Plugin’s Official Documentation and Support Page
