[wp-hackers] How to set up crons in WP?
Thomas Belknap
dragonfly at dragonflyeye.net
Fri Aug 21 13:16:16 UTC 2009
Wrote an article 'bout it. Like to read it? Here it goes:
http://holisticnetworking.net/plugins/2008/10/18/scheduling-with-wordpress-cron-functions/
Hi everyone,
I am trying to set up a cron job in wordpress to call a function called
"wpr_cronjob" every hour in my wordpress plugin. So I registered a
activation hook and in the hook I call the following function:
wp_schedule_event(time(), 'hourly', 'wpr_cronjob');
But I the function is not getting called because every time the function
is called, I will receive an email (which I am not getting). I have set
up a cronjob on my linux server to run wp-cron.php every 5 minutes and
the function is still not getting called. Could you please tell me what
I am doing wrong?
Thanks in advance,
Raj Sekharan.
More information about the wp-hackers
mailing list