Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/cron.php | apply_filters | 746 | /** * Filter to preflight or hijack retrieving a scheduled event. * * 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. * * @since 5.1.0 * * @param null|false|object $pre Value to return instead. Default null to continue retrieving the event. * @param string $hook Action hook of the event. * @param array $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. * @param int|null $timestamp Unix timestamp (UTC) of the event. Null to retrieve next scheduled event. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
null|false|object | $pre | Value to return instead. Default null to continue retrieving the event. |
string | $hook | Action hook of the event. |
array | $args | Array containing each separate argument to pass to the hook's callback function. |
int|null | $timestamp | Unix timestamp (UTC) of the event. Null to retrieve next scheduled event. |