pre_get_ready_cron_jobs хук-фильтр . WP 5.1.0
Filter to preflight or hijack retrieving ready cron jobs.
Returning an array will short-circuit the normal retrieval of ready cron jobs, causing the function to return the filtered value instead.
Использование
add_filter( 'pre_get_ready_cron_jobs', 'filter_function_name_3577' ); function filter_function_name_3577( $pre ){ // filter... return $pre; }
- $pre(null/массив)
- Array of ready cron tasks to return instead.
По умолчанию: null to continue using results from _get_cron_array()
Список изменений
С версии 5.1.0 | Введена. |
Где вызывается хук
pre_get_ready_cron_jobs
wp-includes/cron.php 912
$pre = apply_filters( 'pre_get_ready_cron_jobs', null );