Skip Navigation

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

Problem:
The client needs to duplicate approximately 15,000 products to all languages on their WooCommerce site but finds the translation management page limiting as it only allows duplicating 100 products at a time.
Solution:
We recommend using the WPML hooks

wpml_make_post_duplicates

and

wpml_admin_make_post_duplicates

for bulk duplication of products. These hooks can help automate the process. However, implementing custom code using these hooks is outside our support scope. We advise testing the hooks on a staging or sandbox site first to ensure they meet your needs. For more details on these hooks, please visit the WPML Hooks Reference page at WPML Hooks Reference.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to 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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by zakW 4 days, 6 hours ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
April 2, 2025 at 12:17 pm #16886939

zakW

Background of the issue:
I have around 15000 products on my site hidden link that I need to duplicate to all the languages (5, including the default one). I am looking for a bulk way of doing this that doesn't require selecting them from the translations management page, as this only allows me to do 100 at a time and is not the fastest method. I am considering using a cron job or a function to speed up the process.

Symptoms:
The translations management page only allows duplicating 100 products at a time, which is not efficient for my needs.

Questions:
Is there a way to duplicate 15000 products to all languages in bulk without using the translations management page?
Can I use a cron job or a function to speed up the product duplication process?

April 2, 2025 at 2:53 pm #16887679

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I confirmed with our devs. The hooks I shared are precisely to create duplicates of posts, including products. As I said, the creation of code is outside the scope of our support.

Let me know if you have any question about the hooks.

April 7, 2025 at 12:09 pm #16904153

zakW

Hi Lucas,

Thank you for confirming this. I will be running some test today and if I require any assistance with the hooks I will ask here.

Once I have success with the duplications of the products I will mark this as resolved

Thanks

April 8, 2025 at 7:44 am #16907232

zakW

Hi Lucas,

Using the hook definitely works.

I hope that this is implemented to the core of WPML and maybe use a cron job to help with a large volume of products. Makes more sense from an improving functionality point of view.

Thank you for the help with this issue.