PLL_SETTINGS

The Polylang PLL SETTINGS constant.

Value (string)

is_admin() && ( ( isset( $_GET['page'] ) && 0 === strpos( $_GET['page'], 'mlang' ) ) || ! empty( $_REQUEST['pll_ajax_settings'] ) ) 

Usage

  1. if ( defined( 'PLL_SETTINGS' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'PLL_SETTINGS' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

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

/include/class-polylang.php  
  1. define( PLL_SETTINGS, is_admin() && ( ( isset( $_GET['page'] ) && 0 === strpos( $_GET['page'], 'mlang' ) ) || ! empty( $_REQUEST['pll_ajax_settings'] ) ) );