pll_is_translated_post_type

Returns true if Polylang manages languages and translations for this post type.

Description

pll_is_translated_post_type( (string) $post_type ); 

Parameters (1)

0. $post_type (string)
The post type.

Usage

  1. if ( !function_exists( 'pll_is_translated_post_type' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'polylang/include/api.php'; 
  3.  
  4. // The post type. 
  5. $post_type = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pll_is_translated_post_type($post_type); 
  9.  

Defined (1)

The function is defined in the following location(s).

/include/api.php  
  1. function pll_is_translated_post_type( $post_type ) { 
  2. return PLL()->model->is_translated_post_type( $post_type );