Schedule reminder at exact time

I second SamuelElh comment and YES cron is the way to go. BUT, which cron? The WordPress implementation of cron is a tricky implementation. How? Actually it is a cron fired by the visits your site gets, both (back-end and front-end), so, if your site is not getting a visitor every 10 minutes as suggested … Read more

Cron Job Scheduling in wordpress

You an use following: add_filter(‘cron_schedules’, ‘add_scheduled_interval’); function add_scheduled_interval($schedules) { /* add your time to ‘interval’ option, it should be in seconds */ $schedules[‘hourly’] = array( ‘interval’ => 5, ‘display’ => ‘Once 5 sec’ ); return $schedules; }

Most efficient way to trigger wp-cron through system cron.

The official wordpress documentation https://developer.wordpress.org/plugins/cron/hooking-into-the-system-task-scheduler/ suggests doing it via a web request rather as per your first example rather than php CLI as per your second example. Their example uses wget, but your curl request would work just as well. I believe they are using the web request replicates the standard http requests that would … Read more