apply_filters( ‘pre_get_scheduled_event’, null|false|object $pre, string $hook, array $args, int|null $timestamp )

In this article

Filter to override retrieving a scheduled event.

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

$prenull|false|object
Value to return instead. Default null to continue retrieving the event.
$hookstring
Action hook of the event.
$argsarray
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.
$timestampint|null
Unix timestamp (UTC) of the event. Null to retrieve next scheduled event.

Source

$pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp );

Changelog

VersionDescription
5.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.