This creates a recurring cron job in Wordpress.
From http://wp.smashingmagazine.com/2013/10/16/schedule-events-using-wordpress-cron/