Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…
About WooCommerce Legacy REST API
This plugin restores the functionality of the Legacy REST API that was removed in WooCommerce 9.0 and later versions. It works the same way as enabling the Legacy REST API in older versions of WooCommerce. However, it is not compatible with High-Performance Order Storage, so it is recommended to upgrade the code to use the current WooCommerce REST API.Frequently asked questions
What is the purpose of the WooCommerce Legacy REST API plugin?
This plugin restores the full functionality of the removed Legacy REST API code in WooCommerce 9.0 and later versions. It allows users to continue using the Legacy REST API even after it has been removed from the core WooCommerce plugin.
How does this plugin work with WooCommerce 9.0 and newer versions?
Installing and activating this plugin in WooCommerce 9.0 and newer versions is equivalent to enabling the Legacy REST API in WooCommerce 8.9 and older versions. All endpoints and existing user keys will continue to function as before.
Is this plugin compatible with older versions of WooCommerce?
Yes, installing this plugin with WooCommerce 8.9 or older versions is safe. The plugin detects that the Legacy REST API is still part of WooCommerce and does not initialize itself to avoid interference.
What is a known limitation of the Legacy REST API?
The Legacy REST API is not compatible with High-Performance Order Storage. It is highly recommended to upgrade code that relies on the Legacy REST API to use the current WooCommerce REST API instead.
Changelog
1.0.0 2023-11-01
First version, replicates the WooCommerce Legacy REST API v3.1.0 present in WooCommerce 8.3.
1.0.1 2024-01-08
- Replace the text domain for human-readable strings from ‘woocommerce’ to ‘woocommerce-legacy-rest-api’.
- Add sanitization for data received via query string arguments and the $_SERVER array.
1.0.2 2024-05-01
- Add a dismissable admin notice indicating that the Legacy REST API is not compatible with HPOS.
- The notice will appear if the orders table is (or has been) selected as the orders data store in the WooCommerce features settings page, and will disappear when that ceases to be true. Once the notice is dismissed it will never appear again.
1.0.3 2024-05-15
- Fix a bug introduced in 1.0.2 that caused a fatal error when checking if HPOS is enabled.
1.0.4 2024-05-16
- Correct a problem in which the attempted removal of admin notices (warning of HPOS incompatibility) could lead to a fatal error during plugin deactivation.
1.0.5 xxxx-xx-xx
- Fix the usage of woocommerce_new_order action hook to avoid a fatal errors.