[WordPress] 外掛分享: WooCommerce Legacy REST API

前言介紹

  • 這款 WordPress 外掛「WooCommerce Legacy REST API」是 2024-01-15 上架。
  • 目前有 500000 個安裝啟用數。
  • 上一次更新是 2025-01-23,距離現在已有 100 天。
  • 外掛最低要求 WordPress 6.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 25 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

konamiman | automattic |

外掛標籤

woo | rest-api | woocommerce |

內容簡介

總結:
- 在WooCommerce 9.0版本起,Legacy REST API將不再是WooCommerce的一部分。
- 這款外掛程式在WooCommerce 9.0及以後版本中還原了已移除的Legacy REST API程式碼的全部功能。
- 在WooCommerce 9.0及更新版本中,安裝並啟用這款外掛程式與在WooCommerce 8.9及更舊版本中啟用Legacy REST API是相同的。
- 所有的端點都以相同的方式運作,現有的使用者金鑰也繼續使用。
- 另一方面,與WooCommerce 8.9或更舊版本一起安裝這款外掛程式是安全的,因為外掛程式會檢測到Legacy REST API仍是WooCommerce的一部分,並且不會啟用自己以免干擾內建程式碼。
- 請注意,Legacy REST API與高性能訂單存儲不相容。強烈建議將依賴於Legacy REST API的程式碼升級為使用當前的WooCommerce REST API。

問題與答案:

問:什麼是Legacy REST API?
答:Legacy REST API是WooCommerce的舊版REST API。

問:從哪個版本開始,Legacy REST API不再是WooCommerce的一部分?
答:從WooCommerce 9.0版本開始,Legacy REST API不再是WooCommerce的一部分。

問:這款外掛程式的功能是什麼?
答:這款外掛程式在WooCommerce 9.0及以後版本中還原了已移除的Legacy REST API程式碼的全部功能。

問:安裝這款外掛程式是否與WooCommerce 8.9或更舊版本一起使用是安全的?
答:是的,安裝這款外掛程式與WooCommerce 8.9或更舊版本一起使用是安全的,因為外掛程式會檢測到Legacy REST API仍是WooCommerce的一部分,並且不會啟用自己以免干擾內建程式碼。

問:為什麼建議升級使用當前的WooCommerce REST API?
答:Legacy REST API與高性能訂單存儲不相容,因此建議將依賴於Legacy REST API的程式碼升級為使用當前的WooCommerce REST API。

原文外掛簡介

The Legacy REST API will no longer part of WooCommerce as of version 9.0. This plugin restores the full functionality of the removed Legacy REST API code in WooCommerce 9.0 and later versions.
For all intents and purposes, having this plugin installed and active in WooCommerce 9.0 and newer versions is equivalent to enabling the Legacy REST API in WooCommerce 8.9 and older versions (via WooCommerce – Settings – Advanced – Legacy API). All the endpoints work the same way, and existing user keys also continue working.
On the other hand, installing this plugin together with WooCommerce 8.9 or an older version is safe: the plugin detects that the Legacy REST API is still part of WooCommerce and doesn’t initialize itself as to not interfere with the built-in code.
Please note that the Legacy REST API is not compatible with High-Performance Order Storage. Upgrading the code that relies on the Legacy REST API to use the current WooCommerce REST API instead is highly recommended.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WooCommerce Legacy REST API」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | trunk |

延伸相關外掛(你可能也想知道)

  • Disable REST API 》這是最全面的 WordPress REST API 存取控制外掛!, 輕鬆安裝,安裝後不需要額外設定即可使用。只需上傳並啟用,整個 REST API 將無法被一般訪客存取。, 但如...。
  • Make Connector 》Make 是一個視覺化平台,讓你可以在幾分鐘內設計、建立和自動化任何事情 - 從簡單的任務到複雜的工作流程。使用 Make,你可以在 WordPress 和數千個應用程式...。
  • WPGraphQL 》WPGraphQL 是一個免費、開源的 WordPress 外掛,為任何 WordPress 網站提供可延伸的 GraphQL schema 和 API。, 以下是一些有助於你開始使用 WPGraphQL 的連結...。
  • WordPress REST API Authentication 》WordPress REST API 預設是鬆散的端點,駭客可以通過這些端點遠程控制您的網站。 您不希望駭客可以透過 WordPress 登錄和 WordPress 註冊或任何其他端點來獲...。
  • Disable WP REST API 》這個外掛只有一個功能:禁用沒有登入 WordPress 的訪客使用 WP REST API。不需要任何設定。, 這個外掛只有 22 行短小的程式碼(少於 2KB)。因此它非常輕量、...。
  • WordPress REST API (Version 2) 》WordPress 正轉變成一個完整的應用程式框架,因此需要新的 API。這個專案的目的是創建一個易於使用、易於理解且經過良好測試的框架,用於創建這些 API,以及...。
  • Application Passwords 》⚠️ 重要提示:此外掛已合併至 WordPress 5.6 核心,不需要單獨安裝。 查看整合指南→, 使用應用程式密碼進行身份驗證,而不必直接提供用戶的密碼。相反,為每...。
  • WP REST API – OAuth 1.0a Server 》使用這個外掛,您可以將應用程式連接至您的 WordPress 網站,而不必透露您的密碼。, 此外掛使用 OAuth 1.0a 協議,允許委派授權,即允許應用程式使用一組次要...。
  • REST API Log 》這是一款針對 WordPress REST API v2 的外掛程式,可記錄 REST API 的請求和回應紀錄。, 功能包括:, , WordPress 管理頁面,用於查看和搜尋日誌條目, API 端...。
  • SMNTCS Disable REST API User Endpoints 》隨著 WordPress 4.7 的推出,REST API 已經成為核心的一部分。目前,每個人都可以讀取 REST API。因此,潛在的入侵者可以通過 /wp-json/wp/v2/users 檢索所有...。
  • REST API Toolbox 》此外掛允許調整多個 REST API 設定, , 停用 REST API, 移除 WordPress 核心端點, 需要核心端點驗證, 強制使用 SSL, WP-CLI 命令: wp rest-api-toolbox, , 在 ...。
  • MultiManager WP – Manage All Your WordPress Sites Easily 》總結:, 這個外掛可以幫助你自動連接你的WordPress網站到ICDSoft WordPress MultiManager工具包,在ICDSoft Account Panel中提供。WordPress MultiManager工...。
  • WCFM – Multivendor Marketplace REST API for WooCommerce 》WooCommerce 多供應商市場(WCFM Marketplace)- REST API 會提供您的市場網站最強大的多供應商 REST API,您將能夠使用 HTTP Rest API 請求從其他移動應用程...。
  • WP REST API Meta Endpoints 》, 這是一個針對文章meta資料的 REST API WordPress外掛。。
  • REST API Custom Fields 》這個外掛增強了 WordPress REST API v2 有關元數據(metadata)的回應。。

文章
Filter
Apply Filters
Mastodon