Can I use wp_schedule_event() to set up a cron job from within a widget?
I tried, but I can't make it work, The problem seems to be the $hook parameter. The function I'm trying to hook is located within the widget class so my guess is that WP can't find it.
neither of these work:
wp_schedule_event(time(), 'daily', 'my_widget_cron'); wp_schedule_event(time(), 'daily', array(&$this, 'my_widget_cron'));