Title: Programmatically add/edit posts in several languages during one request?
Last modified: August 30, 2016

---

# Programmatically add/edit posts in several languages during one request?

 *  Resolved [Rulatir](https://wordpress.org/support/users/rulatir/)
 * (@rulatir)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/programmatically-addedit-posts-in-several-languages-during-one-request/)
 * I need to synchronize posts of a specific post type with an external source. 
   When the user presses the synchronize button in the admin screen, I download 
   entries from the external source in all supported languages and then I must update/
   insert their corresponding posts/translations in WordPress.
 * What is the qTranslate-X workflow to achieve that? How do I programmatically 
   add or update a post’s translation for a specific language?
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/programmatically-addedit-posts-in-several-languages-during-one-request/#post-6289847)
 * We are now working on integration framework to design standard interface functions.
   Meanwhile, you may use internal functions
 *     ```
       $texts = qtranxf_split($content)
       $texts['en'] = 'new English text';
       $texts['de'] = 'new German text';
       // etc.
       $content = qtranxf_join_b($texts);
       ```
   
 *  Thread Starter [Rulatir](https://wordpress.org/support/users/rulatir/)
 * (@rulatir)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/programmatically-addedit-posts-in-several-languages-during-one-request/#post-6289940)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Programmatically add/edit posts in several languages during one request?’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rulatir](https://wordpress.org/support/users/rulatir/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/programmatically-addedit-posts-in-several-languages-during-one-request/#post-6289940)
 * Status: resolved