Setup wp_schedule_event within a custom plugin
First of all: if you haven’t read it already, please check the official documentation on WP-Cron. The problem in your code is this line add_action( ‘setupCronJob_whatToMine’, ‘setupCronJob’); You’re defining a new action setupCronJob_whatToMine and add the setupCronJob method to it. But as this is a custom action you just created, it will never be called … Read more