WPML
wpml_is_translated_post_type
Type
filter
WPML Version
3.1.5

Description

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

Arguments

apply_filters( 'wpml_is_translated_post_type', null, string $post_type )
$post_type

(string) (Required) The type of post you wish to check. It can be any post type, such as a post, page, attachment, or revision.

For custom post types, please add the slug of the custom post type.

Example usage

Example
//$is_translated will be TRUE if the custom post is set to be translatable and FALSE if it is not set to be translatable
$is_translated = apply_filters( 'wpml_is_translated_post_type', NULL, 'product' )

wpml_element_translation_type, wpml_is_translated_taxonomy, wpml_master_post_from_duplicate, wpml_post_duplicates, wpml_element_has_translations

All 6 Finding the Translation State of Content hooks →