Skip Navigation

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 Laura 2 weeks ago.

Author Posts
November 18, 2024 at 1:14 pm #16414935

pabloG-55

Background of the issue:
I am developing a site and want to make changes to a translation after it has been completed. I found there is a hook called wpml_pro_translation_completed that may be what I need.

Symptoms:
I don't find any documentation for the hook wpml_pro_translation_completed.

Questions:
Where is the documentation for the pro hooks like wpml_pro_translation_completed?

November 18, 2024 at 3:23 pm #16415547

Laura
Supporter

Languages: English (English ) Italian (Italiano )

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

Hi,

thanks for contacting us.

We currently don't have any documentation for this hook.

I asked the 2nd tier for an insight and I got this reply:

it is fired AFTER the translation is completed and you have to pass a callback and you can check the fields saved for the translation post and trigger like WPML plugin does - a copy of the fields that need copying

you can check \WPML_Copy_Once_Custom_Field::copy in wp-content/plugins/sitepress-multilingual-cms/classes/custom-field-translation/class-wpml-copy-once-custom-field.php

The topic ‘[Closed] where is the documentation of the pro hooks like wpml_pro_translation_completed?’ is closed to new replies.