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 2 voices.

Last updated by Prosenjit Barman 1 month, 4 weeks ago.

Author Posts
November 1, 2024 at 8:49 am #16354326

kevinB-5

Background of the issue:
I need a hook like 'save_post' that is triggered when saving a translation. I want to run a function after a translation is saved. With the original post, the 'save_post' hook works fine. But when using the translation editor to translate this original post, the 'save_post' hook doesn't work for the translation.

Symptoms:
The 'save_post' hook does not trigger when saving a translation using the translation editor.

Questions:
Is there a specific hook in WPML that triggers when a translation is saved?

November 4, 2024 at 5:26 am #16358745

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.

Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.

I understand that you're seeking a hook that activates after saving a translation. Here are some hooks that do trigger after a translation is saved:

- wpml_after_save_post
- icl_pro_translation_completed
- icl_pro_translation_saved

Please give these a try and see if any of them help you achieve your goal. If you need further assistance, don’t hesitate to reach out. We’re here to help!

Best regards,
Prosenjit

November 6, 2024 at 8:15 am #16370038

kevinB-5

The first hook seems to work.

Where in the documentation should I have found this?