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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by johnM-92 1 year, 3 months ago.

Assisted by: Christopher Amirian.

Author Posts
August 16, 2023 at 3:28 pm #14239217

johnM-92

Hi,

I'm looking for a hook that can help me tell if a post has been modified since it was last translated. For example, let's say we have a page called 'Status', and on this page, we have a paragraph about our current status, "I am well". If this gets translated and afterward I change the original page to "I am unwell". The translation is now incorrect. Is there a hook I can use to check if a translation of a page is out-of-date?

Thank you,
John

August 17, 2023 at 1:34 pm #14246697

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi John,

There is no such hook, unfortunately. You can check the list of the hooks here:

https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

To create such functionality you will need custom development which is outside of our support scope, but you can consider hiring developers from the list below:

https://wpml.org/contractors/

Thanks.

August 21, 2023 at 12:50 pm #14263965

johnM-92

Thank you for your reply Christopher. It would be very helpful to me if you could explain in simple terms how WPML tells that a translation needs updating. Is there somewhere in the DB that a translation is connected to a specific version of a post?

Thanks,
John

August 21, 2023 at 3:26 pm #14265647

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

There is indeed a translation related table, but I am not aware of having a connection between a specific version of the translated page.

You can learn more about the database tables used in WPML here:

https://wpml.org/documentation/support/wpml-tables/

August 21, 2023 at 3:42 pm #14265797

johnM-92

Thank you Christopher. I do appreciate you trying to help me with a very non-standard request. I will look at the link you provided and see if I can figure it out from there. I'll mark this as resolved and thanks again.

John