pll_is_translated_taxonomy

Returns true if Polylang manages languages and translations for this taxonomy.

Description

pll_is_translated_taxonomy( (string) $tax ); 

Parameters (1)

0. $tax (string)
Taxonomy name

Usage

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

Defined (1)

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

/include/api.php  
  1. function pll_is_translated_taxonomy( $tax ) { 
  2. return PLL()->model->is_translated_taxonomy( $tax );