Summery Summery
Filter to preflight or hijack retrieving a scheduled event.
Syntax Syntax
Description Description
Returning a non-null value will short-circuit the normal process, returning the filtered value instead.
Return false if the event does not exist, otherwise an event object should be returned.
Parameters Parameters
- $pre
-
Value to return instead. Default null to continue retrieving the event.
- $hook
-
Action hook of the event.
- $args
-
Array containing each separate argument to pass to the hook's callback function. Although not passed to a callback, these arguments are used to uniquely identify the event.
- $timestamp
-
Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.
Source Source
File: wp-includes/cron.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |