Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Translation Priority still translating even when set as not translatable.
Solution:
If you're experiencing this issue, we recommend adding the following code to your theme's functions.php file:

/**
 * Remove translation priority taxonomy from the job.
 * 
 * @see wpmlsupp-11299
 */
add_filter('get_translatable_taxonomies', function($taxs){
	$key = isset($taxs['taxs']) ? array_search('translation_priority', $taxs['taxs'], false) : false;
	if (!empty($key)) {
		unset($taxs['taxs'][$key]);
	}

	return $taxs;
}, 100);

After adding this code, update the original post/page and then send it from TM. You should not see the term to translate, and this will also prevent the creation of new terms.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.

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: 

This topic contains 1 reply, has 2 voices.

Last updated by Lauren 2 months ago.

Assisted by: Lauren.

Author Posts
December 13, 2023 at 6:37 pm #15058191

andreyK-12

Translation Priority still translating even when set as not translatable

December 14, 2023 at 9:31 pm #15068903

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I have escalated this issue to our second tier support and will update here as soon as I have more information.

December 6, 2024 at 5:03 am #16484492

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please try adding the following to your theme's functions.php

/**
 * Remove translation priority taxonomy from the job.
 * 
 * @see wpmlsupp-11299
 */
add_filter('get_translatable_taxonomies', function($taxs){
	$key = isset($taxs['taxs']) ? array_search('translation_priority', $taxs['taxs'], false) : false;
	if (!empty($key)) {
		unset($taxs['taxs'][$key]);
	}

	return $taxs;
}, 100);

After that update the original post/page and then send it from TM. You should not see the term to translate and that will also not create new terms.