{"id":3833,"date":"2021-08-17T11:01:10","date_gmt":"2021-08-17T10:01:10","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=3833"},"modified":"2022-02-17T07:13:46","modified_gmt":"2022-02-17T07:13:46","slug":"debug-cron","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/cron-scheduled-tasks\/debug-cron","title":{"rendered":"Debug cron"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Show cron status<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>  \/\/##### DEBUG ECHO CRON STATUS #####\r\n  \/\/Is system cron disabled\r\n  if (!defined('DISABLE_WP_CRON'))\r\n    echo\"DISABLE_WP_CRON is not defined (cron is triggered by wordpress normally)\";\r\n  else if (DISABLE_WP_CRON === False)\r\n    echo\"DISABLE_WP_CRON is defined as false (cron is triggered by wordpress normally)\";\r\n  else if (DISABLE_WP_CRON === True)\r\n    echo\"DISABLE_WP_CRON is defined as true (cron is NOT being auto triggered by wordpress)\";\r\n  else\r\n    echo\"DISABLE_WP_CRON is unknown (cron is being auto triggered by wordpress state is UNKNOWN)\";\r\n  \r\n  \r\n  \/\/List all cron jobs\r\n  echo \"&lt;br>\";\r\n  echo \"List all cron jobs: \";\r\n  $cron_jobs = get_option( 'cron' );\r\n  echo json_encode($cron_jobs);\r\n  \/\/#################################<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Show cron status<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189],"tags":[],"class_list":["post-3833","post","type-post","status-publish","format-standard","hentry","category-cron-scheduled-tasks"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=3833"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3833\/revisions"}],"predecessor-version":[{"id":3834,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3833\/revisions\/3834"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=3833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=3833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=3833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}