We have a certain workflow we'd like to achieve with WPML that's currently not available.
We'd like to hold auto-translations from being published automatically on updated content.
Essentially, if a post is already translated and then updated, we want to serve the existing version of the translated post until someone manually reviews the translation.
I know this isn't possible by default, but it should be possible through hooks/actions.
Here's what I'm thinking:
If a post is updated and it already has a french translation, then using some hook or action, before the post is auto-translated, save its french translation into a custom field and serve that instead.
This will still end up in Translations as “Published — Pending review”. Then once the translator is done reviewing and publishes the post, once the status is changed from “Published — Pending review” to “Completed”, remove the content from the custom field and now serve the actual post content for French.
I believe wpml_set_translation_mode_for_post_type would be useful here but just want to confirm if that would work for our case scenario.
I got the reply from our developers. Unfortunately, there are no hooks that can help in this case. At the moment, no feature would allow WPML to achieve this.
I have submitted a feature request to our team and will update you once I have feedback.
Kindly note that our team is reviewing all feature requests, but we can not guarantee that it will be implemented or when it can be available.
Kind regards,
Mohamed
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.