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.