Show cron status

  //##### DEBUG ECHO CRON STATUS #####
  //Is system cron disabled
  if (!defined('DISABLE_WP_CRON'))
    echo"DISABLE_WP_CRON is not defined (cron is triggered by wordpress normally)";
  else if (DISABLE_WP_CRON === False)
    echo"DISABLE_WP_CRON is defined as false (cron is triggered by wordpress normally)";
  else if (DISABLE_WP_CRON === True)
    echo"DISABLE_WP_CRON is defined as true (cron is NOT being auto triggered by wordpress)";
  else
    echo"DISABLE_WP_CRON is unknown (cron is being auto triggered by wordpress state is UNKNOWN)";
  
  
  //List all cron jobs
  echo "<br>";
  echo "List all cron jobs: ";
  $cron_jobs = get_option( 'cron' );
  echo json_encode($cron_jobs);
  //#################################
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *