Hi, can someone kindly give me an answer? Thank you!!!
Best regards,
Tommaso
Hi @mrtrufini1
From your screenshot, and your message, I see you have Legacy API enabled and you would like to know if it is safe to disable it.
To determine if it is safe to disable, can you remember why it was enabled in the first place? By default, the API is disabled except something on your site requires it, and since it is enabled on your site, it means something needed it.
Can you recollect when or why this was enabled? If you can find out, and you no longer need that function, then you can safely disable it. You do not need to have WooCommerce APIs enabled on your store for it to function, except you are doing something that requires the API.
I hope this helps.
Hi, thanks for the reply. Only the Legacy API is active but there is no parameter even in the Rest API, all empty.
Unfortunately I found it already active but I didn’t activate it, unless it is automatically activated by some plugin that required it. Unfortunately, I don’t know what it’s used for. Is there a way through some system log to understand if this Legacy API is really working?
Best Regards,
Tommaso
Hi @mrtrufini1,
If you visit WooCommerce ▸ Settings ▸ Advanced ▸ Webhooks and see that there are no webhooks, and you if you also do not see any API keys when you visit WooCommerce ▸ Settings ▸ Advanced ▸ REST API, then it is probably safe to disable the Legacy REST API (and you would not require this plugin).
Also, if you are keeping WooCommerce up-to-date then, as of recently, it should warn you if it detects that the Legacy REST API is actually being used (and will try to provide what information it can about the service that is using it). This takes the form of an admin notice that appears on WooCommerce settings screens.
Hello and thanks for the reply. Everything is deactivated, there is no webhook and no Rest API. However, if Woocommerce warns in the next version it will be a really good solution, I hope that’s the case. Then I wait for the new versions to warn about this function, so I will deactivate it safely.
Thanks again to everyone and good work!
Best Regards,
Tommaso
However, if Woocommerce warns in the next version it will be a really good solution, I hope that’s the case.
You can see an example of the warning text in this comment and, in fact, this is already available in the latest version of WooCommerce and has been since 8.5.0 (so, if you are not seeing the warning, then the Legacy REST API is probably not actively in use).
You may also be interested in this recent blog post:
https://developer.woo.com/2024/03/21/the-legacy-rest-api-plugin-will-be-automatically-installed-in-woocommerce-8-8/
In our upcoming 8.8 release, WooCommerce will automatically attempt to install and activate this plugin if it thinks it is needed.
No, in fact I don’t get that warning, WooCommerce is updated to the latest version. So I really don’t think the Legacy API function will be needed, at least I hope so. Thank you very much also for the article, I will read it carefully to pay attention to the details, Thanks for your interest!