schedule_event хук-фильтр . WP 3.1.0
Modify an event before it is scheduled.
Использование
add_filter( 'schedule_event', 'filter_function_name_6280' ); function filter_function_name_6280( $event ){ // filter... return $event; }
- $event(stdClass/false)
An object containing an event's data, or boolean false to prevent the event from being scheduled.
-
hook(строка)
Action hook to execute when the event is run. -
timestamp(число)
Unix timestamp (UTC) for when to next run the event. -
schedule(строка/false)
How often the event should subsequently recur. -
args(массив)
Array containing each separate argument to pass to the hook's callback function. - interval(число)
The interval time in seconds for the schedule. Only present for recurring events.
-
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
schedule_event
schedule_event
wp-includes/cron.php 146
$event = apply_filters( 'schedule_event', $event );
wp-includes/cron.php 222
$event = apply_filters( 'schedule_event', $event );