Skip Navigation

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

Problem:
You are looking for a way to be notified via WordPress action when translation content changes, specifically in a strings package, but you can't find relevant information in the WPML documentation.
Solution:
Currently, there is no specific action in WPML that notifies about changes in translation content as you described. However, you can explore all available hooks in WPML through the following documentation link: WPML Hooks Reference.
Since the action you are interested in is internal and not documented, we cannot guarantee its functionality or effectiveness. For more developer information, please visit: WPML Developer Documentation.

If this solution does not apply to your case, or if it 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. 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.

This topic contains 3 replies, has 0 voices.

Last updated by Andrey 2 weeks, 3 days ago.

Assisted by: Andrey.

Author Posts
February 23, 2025 at 4:44 pm #16738323

romansS

Background of the issue:
I'm trying to find a way to be notified via WordPress action whenever translation content is being changed in some way. Specifically, I would want to be notified about translation changes in a strings package, but notification actions for other types of changes would also be useful.

Symptoms:
There doesn't seem to be anything like this in WPML documentation.

Questions:
Could you please point me to the action name for my case if there is any?
If there are not, is it possible for you to consider adding such functionality in future versions?

February 23, 2025 at 9:50 pm #16738687

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

There is no such action that will indicate this.

However, all available hooks in WPML can be found here:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

February 24, 2025 at 1:05 pm #16741124

romansS

You're wrong. For example, here is "wpml_st_add_string_translation" defined in \WPML_ST_String::set_translation

February 24, 2025 at 3:24 pm #16741942

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

Meaning that no action is documented in the WPML API for what you described. The action you mentioned is internal, so you can try using it, but I cannot guarantee that it will meet your needs or if it works at all.

The other developer information can be found here:
https://wpml.org/documentation/support/