schedule_event

过滤钩子


apply_filters( 'schedule_event', $event )
参数
  • (stdClass|false)
    $event
    {
    An object containing an event’s data, or boolean false to prevent the event from being scheduled.

    @type string $hook Action hook to execute when the event is run.
    @type int $timestamp Unix timestamp (UTC) for when to next run the event.
    @type string|false $schedule How often the event should subsequently recur.
    @type array $args Array containing each separate argument to pass to the hook’s callback function.
    @type int $interval The interval time in seconds for the schedule. Only present for recurring events.
    }

    Required:
定义位置
  • wp-includes/cron.php
    , line 177
引入
3.1.0
弃用

Modify an event before it is scheduled.

$event = apply_filters( 'schedule_event', $event );