get_schedule

过滤钩子


apply_filters( 'get_schedule', $schedule, $hook, $args )
参数
  • (string|false)
    $schedule
    Schedule for the hook. False if not found.
    Required:
  • (string)
    $hook
    Action hook to execute when cron is run.
    Required:
  • (array)
    $args
    Arguments to pass to the hook’s callback function.
    Required:
定义位置
  • wp-includes/cron.php
    , line 1095
引入
5.1.0
弃用

过滤一个钩子的时间表。

return apply_filters( 'get_schedule', $schedule, $hook, $args );