WP-cron debug test – Add a WordPress cron event to email server variables every 2 minutes

Posted by .

I had to debug some issues today with a couple of scheduled posts not being published on time and showing “Missed schedule” on  a multi-server setup.

I thought it may be something to do with WP-cron so put together the below code to add a new cron event to email me PHP server variables every 2 minutes. It can easily be edited to email other information to help you debug cron issues.

Comments are closed.