SignaturePHP
apply_filters( 'wpml_is_translated_post_type', null, string $post_type )
Description
Returns TRUE or FALSE depending on whether a post type has been set to be translatable or not.
Arguments
$post_typestringRequiredThe type of post you wish to check. It can be any post type (opens in a new tab), such as a post, page, attachment, or revision.
For custom post types, please add the slug of the custom post type.
Example Usage
PHP
//$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' )