DOING_AJAX

The Jetpack by WordPress.com DOING AJAX constant.

Value (bool)

true 

Usage

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

Defined (3)

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

/modules/infinite-scroll/infinity.php  
  1. define( 'DOING_AJAX', true ); 
  1. define( 'DOING_AJAX', true ); 
/modules/related-posts/jetpack-related-posts.php  
  1. define( 'DOING_AJAX', true );