WooCommerce Legacy REST API

Description

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.

Installation

Simply install and activate the plugin. In WooCommerce 8.9 and earlier nothing will change. Starting with WooCommerce 9.0 having the plugin installed will provide the full functionality of the Legacy REST API.

Note that since the Legacy REST API is not compatible with HPOS, once the plugin is active you will see a «WooCommerce has detected that some of your active plugins are incompatible with currently enabled WooCommerce features» notice in your WordPress admin area.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“WooCommerce Legacy REST API” is open source software. The following people have contributed to this plugin.

Contributors

“WooCommerce Legacy REST API” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WooCommerce Legacy REST API” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

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.