WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp reschedule event

Description

This function is used internally by WordPress to reschedule a recurring event. You'll likely never need to use this function manually, it is documented here for completeness.

Usage

 <?php wp_reschedule_event$timestamp$recurrence$hook$args); ?>

Parameters

$timestamp
(integer) (required) The time the scheduled event will occur (unix timestamp)
Default: None
$recurrence
(string) (required) How often the event recurs, either 'hourly' or 'daily'
Default: None
$hook
(string) (required) Name of action hook to fire (string)
Default: None
$args
(array) (optional) Arguments to pass into the hook function(s)
Default: array()

Return Value

(boolean|null) 
False on failure. Null when event is rescheduled.

Examples

Notes

Change Log

Since: 2.1.0

Source File

wp_reschedule_event() is located in wp-includes/cron.php

Related

For a comprehensive list of functions, take a look at the category Functions

See also index of Function Reference and index of Template Tags.