DOING_CRON

The WordPress Core DOING CRON constant.

Value (bool)

true 

Usage

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

Defined (1)

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

/json-endpoints/jetpack/class.jetpack-json-api-cron-endpoint.php  
  1. define( 'DOING_CRON', true );