Thank you for your reply.
Our site https://www.assopogo.net is bilingual French/English (WPML).
I use Buddypress for the forums.
I would like a message written in English to be translated into French and vice versa.
For the moment, it’s simply duplicated in the other language. Using the wp_insert_post hook, I can modify the content with wp_update_post.
I just need to translate the content, and the title, before applying wp_update_post.
I’d like to use a plugin function for this.
I hope I’ve made myself clear!
Sincerely
Emmanuel Liron