Skip Navigation
availability:

WPML Version: 3.5.2

description:

Returns TRUE or FALSE depending on whether a taxonomy has been set to be translatable or not.

type:
filter
category:
Finding the Translation State of Content
parameters:
apply_filters( 'wpml_is_translated_taxonomy', null, string $taxonomy )

$taxonomy

(string) (Required) The taxonomy you would like to check. This can be a category, post_tag, nav_menu, or other default taxonomy.

For custom taxonomies, please add the slug of the custom taxonomy.

hook example usage:

Example

//$is_translated will be TRUE if the taxonomy is set to be translatable and FALSE if it is not set to be translatable
$is_translated = apply_filters( 'wpml_is_translated_taxonomy', NULL, 'categories' )