wp_doing_cron

过滤钩子


apply_filters( 'wp_doing_cron', defined( 'DOING_CRON' )
参数
  • (bool)
    $wp_doing_cron
    Whether the current request is a WordPress cron request.
    Required:
定义位置
  • wp-includes/load.php
    , line 1575
引入
4.8.0
弃用

Filters whether the current request is a WordPress cron request.

return apply_filters( 'wp_doing_cron', defined( 'DOING_CRON' ) && DOING_CRON );