Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
WooCommerce Legacy REST API icon

WooCommerce Legacy REST API

v1.0.5
by Automattic · 1.4 (25 reviews)

The WooCommerce Legacy REST API, which is now part of WooCommerce itself but will be removed in WooCommerce 9.0.

400K+ active installs Updated Jan 24, 2025 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card

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.

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…

LiteSpeed Cache icon

LiteSpeed Cache

4.8 · 7M+ installs

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

WooCommerce icon

WooCommerce

4.5 · 7M+ installs

Everything you need to launch an online store in days and keep it growing for years. From your…