Title: wp_schedule_event
Last modified: August 20, 2016

---

# wp_schedule_event

 *  [andriuss](https://wordpress.org/support/users/andriuss/)
 * (@andriuss)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/wp_schedule_event/)
 * Hello i want that my cron would call function every day at 2 o`clock am. Do I
   write correct ? Or something wrong? because its not working..
 *     ```
       register_activation_hook(__FILE__, 'my_activation');
       add_action('my_hourly_event', 'do_this_hourly');
   
       function my_activation() {
       	wp_schedule_event(strtotime(date('Y-m-d 00:02:00')), 'daily', 'my_hourly_event');
       }
   
       function do_this_hourly() {
       	update_option('makeoption', date('Y-m-d H:i'));
       }
       ```
   
 * _[[No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping), thank you.]_

The topic ‘wp_schedule_event’ is closed to new replies.

## Tags

 * [wp_schedule_event](https://wordpress.org/support/topic-tag/wp_schedule_event/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [andriuss](https://wordpress.org/support/users/andriuss/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/wp_schedule_event/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
