This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Exception
This topic contains 2 replies, has 1 voice.
Last updated by aigarsM 1 week, 3 days ago.
Assisted by: Shekhar Bhandari.
| Author | Posts |
|---|---|
| February 10, 2026 at 8:33 am #17807499 | |
|
aigarsM |
Hi, I am using WP All Import to update my WooCommerce products in the LV (original/main) language. I expected WPML’s automatic translation to trigger and translate the products into the other languages. I have set WPML to translate everything automatically, and under WPML → Translation Management it says: “As you create new content or edit existing content, WPML will automatically translate it, but only from LV to EE.” I have created a class that loops through all products, checks which ones need to be updated according to WPML standards, and then triggers the wp_update_post function like this: However, this does not seem to work, and the translations are still left untouched by WPML. |
| February 10, 2026 at 8:49 am #17807627 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello, I’ve forwarded your feedback to our second-tier support team and will update you as soon as I receive their response. Thank you. |
| February 11, 2026 at 4:25 am #17811380 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, Our developer checked the issue and suggested the following workaround: - Add the following code
if ( isset( $_GET['wpmlvip-129'] ) ) {
add_action( 'admin_init', function() {
wp_update_post( [
'ID' => 181, // change the post ID or iterate on several post IDs
'post_modified' => current_time( 'mysql' ),
'post_modified_gmt' => current_time( 'mysql', true ),
], true );
} );
}
- Visit hidden link. Also, I’d like to let you know that we are working to make this process much simpler, but it will take some time to develop. Let me know if this helps. Thanks |
| February 11, 2026 at 7:22 am #17811521 | |
|
aigarsM |
Thank you, my issue has been resolved! |