WordPress at a glance
filter is not described

schedule_event filter-hook . WP 3.1.0

Modify an event before it is scheduled.


add_filter( 'schedule_event', 'filter_function_name_9076' );
function filter_function_name_9076( $event ){
	// filter...

	return $event;

An object containing an event's data, or boolean false to prevent the event from being scheduled.

  • hook(string)
    Action hook to execute when the event is run.

  • timestamp(int)
    Unix timestamp (UTC) for when to next run the event.

  • schedule(string/false)
    How often the event should subsequently recur.

  • args(array)
    Array containing each separate argument to pass to the hook's callback function.

  • interval(int)
    The interval time in seconds for the schedule. Only present for recurring events.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

wp-includes/cron.php 143
$event = apply_filters( 'schedule_event', $event );
wp-includes/cron.php 215
$event = apply_filters( 'schedule_event', $event );

Где используется хук в ядре WordPress

Использование не найдено.