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.
This topic contains 2 replies, has 1 voice.
Last updated by Shekhar Bhandari 3 minutes ago.
| Author | Posts |
|---|---|
| March 24, 2026 at 2:23 pm #17922763 | |
|
dennisB-32 |
It seems that my page does mirror 100% original language. If a page is changed from 'published' to 'draft' I want to to also mark the translated pages as draft. Same for publish, delete, etc. But I think these might work. Why not draft? |
| March 24, 2026 at 3:22 pm #17922993 | |
|
dennisB-32 |
Hello! // --- WPML: Sync post status across all translations --- static $syncing = false; if ($new_status === $old_status) return; if (!function_exists('apply_filters') || !has_filter('wpml_default_language')) return; $default_lang = apply_filters('wpml_default_language', null); $element_type = apply_filters('wpml_element_type', $post->post_type); $translations = apply_filters('wpml_get_element_translations', null, $trid, $element_type); $syncing = true; $trans_post = get_post($translation->element_id); wp_update_post([ |
| March 25, 2026 at 6:47 am #17924529 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello, Thank you for reaching out to WPML support. Before your ticket is assigned to a supporter, I’d like to provide some guidance on your query. Can you please check the solution provided here and see if it helps? hidden link Let us know if these steps resolve the issue or if you need further assistance. Thanks |