You can use cron-jobs and there’s 2 ways you can do that:
-
wp_schedule_event($timestamp, $recurrence, $hook, $args);
http://codex.wordpress.org/Function_Reference/wp_schedule_eventThe action will trigger when someone visits your WordPress site, if the scheduled time has passed.
- Server cron job