Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is working on a site under development and is unsure which REST API is required by the documentation. The WooCommerce Legacy REST API is incompatible with High-Performance Order Storage used in WooCommerce 9.x, and the client cannot use legacy WordPress posts storage.
Solution:
We confirmed that WooCommerce Multilingual is fully compatible with the WordPress REST API (wp-json), which is sufficient for managing translated WooCommerce content. The client does not need any other API, and it always refers to the WordPress REST API. For detailed instructions on setup and configuration, please refer to the following guide: Using WordPress REST API with WooCommerce Multilingual.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 0 voices.

Last updated by frederikB-5 1 week, 3 days ago.

Assisted by: Marcel.

Author Posts
January 21, 2025 at 4:35 pm #16619957

frederikB-5

Background of the issue:
I am working on a site under development and the requirements documentation indicates that a REST API is required. It is unclear which REST API is meant. WooCommerce includes a REST API that requires a key for access. The documentation might be referring to the Legacy REST API, but it does not specify this. The WooCommerce Legacy REST API plugin is not compatible with High-Performance Order Storage, which is used by default in WooCommerce 9.x. I cannot switch to legacy WordPress posts storage, so I cannot install the legacy REST API.

Symptoms:
The documentation is unclear about which REST API is required, and I cannot use the Legacy REST API due to compatibility issues with High-Performance Order Storage.

Questions:
Is the REST API included in WooCommerce 9.x sufficient to meet WPML's requirements?
Does WPML need an API key to access the REST API? If so, how do I configure it?

January 21, 2025 at 6:24 pm #16620166

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

WooCommerce Multilingual is fully compatible with the WordPress REST API (wp-json). This allows you to create, read, update, and delete translated WooCommerce content seamlessly. You don't need any other, it always refers to the WP REST API.

For detailed instructions on setup and configuration, please refer to the following guide: Using WordPress REST API with WooCommerce Multilingual.

Best regards,
Marcel

January 22, 2025 at 6:32 pm #16624835

frederikB-5

I discovered that REST API is a build-in feature of WordPress. It can be tested at yourdomain/wp-json and it is active by default. REST API is mentioned as requirement becauser there are plugins and other ways to deactivate it.

I applied the filter code at https://developer.wordpress.org/rest-api/frequently-asked-questions/#require-authentication-for-all-requests which denies access to the REST API by unauthenticated users and I did not see it affect WPML's functionality.