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);
  //#################################
USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published.