WordPress开发者和主题制作者的搜索引擎



wp_doing_cron ›

Since4.8.0
已弃用n/a
wp_doing_cron ( 没有参数 )
返回:
  • (bool) True if it's a WordPress cron request, false otherwise.
定义在:
文档:

Determines whether the current request is a WordPress cron request.



源码

function wp_doing_cron() {
	/**
	 * Filters whether the current request is a WordPress cron request.
	 *
	 * @since 4.8.0
	 *
	 * @param bool $wp_doing_cron Whether the current request is a WordPress cron request.
	 */
	return apply_filters( 'wp_doing_cron', defined( 'DOING_CRON' ) && DOING_CRON );
}