WooCommerce Legacy REST API

WooCommerce Legacy REST API

Automattic

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.

v1.0.4 caused critical error, or was it WC v9.0.0?

By essjay88 on June 19, 2024

Forced plugin install (not even an advisory notice) and either the auto updated WC 9.0 or the v1.0.4 plugin update crashed my client site. Critical error. I have rolled back to WC 8.9.3 and plugin v.1.0.3 to get the site back following advice at https://wordify.com/blog/woocommerce-9-0-0-update-class-wc_legacy_api-not-found/

Critical error version 1.0.3 seems to be resolved in 1.0.4

By keesdobbelstein on May 21, 2024

Update : After updating Woocommerce to 8.9.1 this plugin was installed automatically again (v 1.0.4) and is now working without a crash.

Version 1.0.3: Critical error on line 77 when updated. Had to follow the safe mode to disable this plugin and temporary delete it. Theme used: Astra. After deleting the Rest API plugin everything went back to normal. Please fix.

Forced Install

By rafasashi on May 20, 2024

Installed without authorization. Disappointing...

critical error

By arviiddd on May 16, 2024

did not download or request this plugin and it can't be deleted or deactivated. had to delete it in cPanel

Did Not Need/Request This Plugin

By mysticmedusa on May 15, 2024

Even though Rest API was unticked on our site - as in not used, non-required - and there are no webhooks,this new replacement plugin was installed by WooCommerce anyway - it was bad enough when Woo began saying certain plugins were suddenly compulsory- but I did not realize they would just install plugins without consent. We have had problems since the latest Woo update so it is hard to say if the inability of would-be buyers to add products to cart is due to this plugin or another revenue-draining update from WooCommerce. However, I am giving it one star because it is unneccessary, not required and was added as a live, active plugin by WooCommerce, when Rest API itself was not active.

Forced update, Totally killed my site

By ostinatofreak on May 15, 2024

Can't even log in to my Wordpress site now. Great move WooCommerce.

WHAT A DISASTER

By amenchenp99 on May 15, 2024

This plugin literally crashes my site!

PIECE OF CRAP

By kellyu555 on May 15, 2024

crashed my site, couldnt even log in with recovery mode. had to call host to get them to resolve.

Fatal error crashing site

By milenfrom on May 15, 2024

1. Installed without permission 2. Crashed the website upon update Overall creates more problems than solves.

critical error - site crash

By MBayDesign on May 15, 2024

Updating the plugin to 1.0.3 seems to have fixed the issue.

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.

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

1.4 out of 5 stars

  • Version: 1.0.4
  • Last updated: 4 months ago
  • Active installations: 500K
  • WordPress version: 6.2
  • Tested up to: 6.3.5
  • PHP version: 7.4