WordPress glossary

WP-Cron

How WordPress runs scheduled tasks, like publishing scheduled posts.

WP-Cron is how WordPress runs tasks on a schedule, like publishing scheduled posts, checking for updates and emptying the trash. Plugins use it too, for things like backups and sending emails. It’s named after cron, the scheduler built into servers, but it works differently.

A server’s cron runs tasks at a set time, whatever happens. WP-Cron can’t do that, since WordPress only runs when someone loads a page. So on every page load, WordPress checks whether any tasks are due, and runs them in the background. On a busy site, that’s close enough. On a site with little traffic, tasks can run late, and a scheduled post that wasn’t published in time is marked as “Missed schedule” in the posts list.

If tasks need to run on time, you can turn off the page load check by adding define( 'DISABLE_WP_CRON', true ); to wp-config.php, and set up a cron job on your server that calls wp-cron.php every few minutes instead. Many web hosts can set that up for you, and some managed hosts handle it out of the box.

Published December 3, 2026

Related terms