get_schedule хук-фильтр . WP 5.1.0
Filters the schedule for a hook.
Использование
add_filter( 'get_schedule', 'filter_function_name_1365', 10, 3 ); function filter_function_name_1365( $schedule, $hook, $args ){ // filter... return $schedule; }
- $schedule(строка/true/false)
- Schedule for the hook. False if not found.
- $hook(строка)
- Action hook to execute when cron is run.
- $args(массив)
- Optional. Arguments to pass to the hook's callback function.
Список изменений
С версии 5.1.0 | Введена. |
Где вызывается хук
get_schedule
wp-includes/cron.php 887
return apply_filters( 'get_schedule', $schedule, $hook, $args );