How to code schedule / cron job

Inspect your Schedules

The best way to learn coding is to turn debug on and simply inspect your output. If you want to dig deeper, then you often need a custom tool that allows you to inspect the result fast and nicely, readable formatted.

I wrote a plugin for some other answer, that helps you inspecting the WP “Cron Jobs”/Schedules. You can grab it on GitHub as Gist.

Here’s what the output looks like.

enter image description here

Forks

@StephenHarris forked the plugin, which is also available as Gist.

Primary difference between this plug-in and the original, is that this displays each seperate cron-job even when two or more share the same hook (and arguments).

– Stephen Harris in the plugins comment