WordPress wp_schedule_single_event(): One-Off Background Tasks with WP-C ...
One-off background tasks with wp_schedule_single_event() wp_schedule_event() creates tasks that repeat forever. Many tasks should run only once, at a certain time: a follow-up email a day after registration, a cleanup an hour after an import, a reminder before an event. wp_schedule_single_event() does that: it runs a hook once at the given time and removes the…