PLL_AJAX_ON_FRONT

The Polylang PLL AJAX ON FRONT constant.

Value (string)

defined( 'DOING_AJAX' ) && DOING_AJAX && empty( $_REQUEST['pll_ajax_backend'] ) && ! $in 

Usage

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

Defined (2)

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

/include/class-polylang.php  
  1. define( 'PLL_AJAX_ON_FRONT', defined( 'DOING_AJAX' ) && DOING_AJAX && empty( $_REQUEST['pll_ajax_backend'] ) && ! $in ); 
/modules/plugins/plugins-compat.php  
  1. define( 'PLL_AJAX_ON_FRONT', true );