How could I debug cron task run by internal cron functions? My cron task isn't firing and that i suppose some functions aren't declared yet when cron hook happens.
It is always good basically can keep errors into some log file? Any ideas? Thanks.
I made use of Core Control wordpress plugin to ascertain if things are okay. The my_task_hook and hooked function too, the "due time" is altering...so another thing should be wrong.
I discovered the wordpress-cron dashboard wordpress plugin http://wordpress.org/extend/plugins/wp-cron-dashboard/ very useful. Utilizing it I could see what cron tasks were working or otherwise.
I additionally discovered that the paperwork around the cron functions were not very obvious. When establishing a wordpress cron task make certain you add the work as an action using add_action then you can run wordpress_schedule_event around the task.
Best of luck!