Background of the issue:
I am developing a site and want to translate newly inserted posts by code. After using wp_insert_post, I want to translate the post into other languages programmatically. I am looking for functions in WPML that can help achieve this.
Symptoms:
I looked at the developer documentation but can't find any information.
Questions:
Which functions in WPML can I use to translate posts into other languages by code?