Title: wp_schedule_event question
Last modified: August 21, 2016

---

# wp_schedule_event question

 *  [halben](https://wordpress.org/support/users/halben/)
 * (@halben)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_schedule_event-question-1/)
 * Let’s say, we are using the WordPress function `wp_schedule_event()` to run a
   script every hour, does it run on its own? or do I need to use windows task scheduler/
   cron to do the job?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Rod Whiteley](https://wordpress.org/support/users/rod-whiteley/)
 * (@rod-whiteley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_schedule_event-question-1/#post-4240816)
 * The answer is in the Codex: [wp_schedule_event](http://codex.wordpress.org/Function_Reference/wp_schedule_event)
 * If you really want to run the script every hour and your site has few visitors,
   use a cron job instead.
 *  Thread Starter [halben](https://wordpress.org/support/users/halben/)
 * (@halben)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_schedule_event-question-1/#post-4240821)
 * So to be clear, `wp_schedule_event()` is based on visitors meaning the function
   will only execute when it detects a visitor to your website?
 *  [Rod Whiteley](https://wordpress.org/support/users/rod-whiteley/)
 * (@rod-whiteley)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/wp_schedule_event-question-1/#post-4240826)
 * The Codex says:
 * > The action will trigger when someone visits your WordPress site…
 * If that is not clear, let me know what’s unclear about it and I’ll change the
   wording to make it clearer.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp_schedule_event question’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Rod Whiteley](https://wordpress.org/support/users/rod-whiteley/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/wp_schedule_event-question-1/#post-4240826)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
