wp_schedule_event in a class

Finally, I discovered what was wrong: the webserver (a dedicated VPS) had a bad configuration of the hosted domain, so it was unable to “self contact” it, to call wp-cron.php .

I fixed it and now every scheduled job works, including this one 🙂

Leave a Comment