內容簡介
總結:
- 在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.
