WordPress allows plugins and themes to build on the functionality of wp-cron.php to schedule automated tasks with cron jobs. This is accomplished using the wp_schedule_event() function in PHP. The wp_schedule_event() function has three main variables: $timestamp, $recurrence, and $hook. These variables establish when the cron script will run, repeat, and the code to be utilized.