wp_doing_cron() – Determines whether the current request is a WordPress cron request.
You appear to be a bot. Output may be restricted
Description
Determines whether the current request is a WordPress cron request.
Usage
$bool = wp_doing_cron();
Parameters
Returns
bool True if it's a WordPress cron request, false otherwise.
Source
File name: wordpress/wp-includes/load.php
Lines:
1 to 10 of 10
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 ); }