One extremely confusing set of functions within WordPress is the concept of “wp_cron“. For those of you unfamiliar with it, is a scheduling tool on Unix systems and, in itself, is not without its own confusing elements. Let’s take a more user-friendly example for scheduling an event first. Let’s say I wanted to create a recurring event in a calendar app. Probably I’d start by picking a day on a calendar and then put all my information in there, including the recurrence of the event. On Windows, the task scheduler is a pretty similar workflow. You get a graphical interface, tell it what you want to run and how frequently and, barring some horrible problem, the machine will fire that action or run that program at the desired frequency. This is especially handy for scheduling things like backups. On Linux-based systems (which is what most webservers run), you have the same level of control (more even), but lack the intuitive user interface. Instead you get this: * * * * * command to be executed - - - - - | | | | | | | | | +----- day of week (0 - 6) (Sunday=0) | | | +------- month (1 - 12) | | +--------- day of
Share This

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.