• Hi,
    I have a woocommerce and need change the translations in one languange programmatically. I have an csv file with the id (SKU) and the new translated title and description. How can i modify this in one specific language?
    My title are like this “[:se]Title se[:en]Title en[:]
    If use this:

    $my_post = array(
          'ID'           => 99,
          'post_title'   => 'New title.',
          'post_content' => 'New content.',
    );
    // Update the post into the database
    wp_update_post( $my_post );

    My title become in “New title”.
    And should be like this “[:se]New title[:en]Title en[:]”

    Thanks!!

    https://www.ads-software.com/plugins/qtranslate-x/

  • The topic ‘Set title and description by code in one specific language’ is closed to new replies.