Delay a function, any function!
You could solve this via WP Cron using wp_schedule_single_event(). However, for this to properly work, you’d need to disable the standard cron (which is run by a user visiting the site) and instead use a proper cronjob/crontab. EasyEngine has a good tutorial on disabling wp-cron and using cronjob instead. An alternative would be solve this … Read more