pre_get_ready_cron_jobs

过滤钩子


apply_filters( 'pre_get_ready_cron_jobs', null )
参数
  • (null|array[])
    $pre
    Array of ready cron tasks to return instead. Default null
    to continue using results from _get_cron_array().
    Required:
定义位置
  • wp-includes/cron.php
    , line 1120
引入
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.

$pre = apply_filters( 'pre_get_ready_cron_jobs', null );