Skip Navigation

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

Problem:
The client is using WooCommerce Multilingual (WPML) and needs to trigger the translation of a product via REST API using its SKU. However, when using the REST API, the product is not fully copied, and elements such as title, short description, attributes, and variations are not translated or copied correctly.
Solution:
We explained that the hook

wpml_make_post_duplicates

used by the client only duplicates the post but does not translate it. For automatic translation after duplication, we suggested hooking into

save_post

and triggering an update of the original. However, translating content using the REST API is not fully integrated in WPML yet. We recommended checking the following documentation on Duplicate Content and a related support ticket at REST APIs to set/retrieve post translations. Additionally, enabling "Translate Everything Automatically" might help as a workaround, though it is not officially tested.

If this solution does not resolve your issue or seems outdated, 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 the problem persists, please open a new support ticket.

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.

Tagged: 

This topic contains 14 replies, has 0 voices.

Last updated by andrewE-3 1 month, 3 weeks ago.

Assisted by: Otto.

Author Posts
March 5, 2025 at 8:24 am #16776981

andrewE-3

Hello

We did it differently. When we upload a product to the website admin panel, a duplicate page is automatically created. Then, we select the products for translation in the Translation Manager and start the content translation process.