apply_filters( ‘wp_next_scheduled’, int $timestamp, object $next_event, array $args )

In this article

Filters the timestamp of the next scheduled event for the given hook.

Parameters

$timestampint
Unix timestamp (UTC) for when to next run the event.
$next_eventobject
An object containing an event’s data.
  • hook string
    Action hook of the event.
  • timestamp int
    Unix timestamp (UTC) for when to next run the event.
  • schedule string
    How often the event should subsequently recur.
  • args array
    Array containing each separate argument to pass to the hook callback function.
  • interval int
    Optional. The interval time in seconds for the schedule. Only present for recurring events.
$argsarray
Array containing each separate argument to pass to the hook callback function.

Source

return apply_filters( 'wp_next_scheduled', $next_event->timestamp, $next_event, $hook, $args );

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

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