[wp-hackers] How to set up crons in WP?
wp at xentek.net
Sat Aug 22 08:58:57 UTC 2009
On Aug 21, 2009, at 9:20 AM, Otto wrote:
> Cron doesn't call functions, it triggers action hooks. You need to tie
> your action hook to your function.
> wp_schedule_event(time(), 'hourly', 'my_action_hook');
> function my_function() ...
Since we're on the topic, one thing that never made sense to me is how
the whole wp-cron system is triggered since there aren't any
instructions to have it actually triggered by an entry in crontab. How
does wordpress know to run the scheduled jobs?
- Eric Marden
More information about the wp-hackers