Cron task not working properly

There are a number of issues here:

  1. every_minute doesn’t exist as a cron schedule, so while you’ve successfully scheduled the cron job, WordPress doesn’t know when to run it.
  2. The code binds that the class method/functions to the hook dynamically, but those are static methods, either remove the static keyword or use the class name instead of $this
  3. You’re assuming that wp_insert_post always works, it can fail! It returns a post ID or a failure value, assign it and check that value so you can report that something went wrong

Finally, WP Cron issues can also be debugged using WP CLI or plugins such as wP Crontrol that let you view what has been scheduled, when, and if they’re overdue.

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş