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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/

This topic contains 1 reply, has 0 voices.

Last updated by Laura 5 days, 21 hours 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