I have disabled cronjobs on my nginx server, as it is better to run from crontab.
define('DISABLE_WP_CRON', true);
How could I run a custom wordpress function using Crontab, once per day?
This thread seems to offer a solution but it is not explained well enough in my opinion and might pose a security risk: execute function in wordpress plugin using crontab
On another note even if I disable WP_Cron, would wp_schedule_single_event()
still work? As it would be easier to implement a solution this way.