• Resolved Rulatir

    (@rulatir)


    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://ww.wp.xz.cn/plugins/qtranslate-x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Clause

    (@johnclause)

    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

    (@rulatir)

    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.