wp_doing_cron()
Determines whether the current request is a ClassicPress cron request.
Return
(bool) True if it's a ClassicPress cron request, false otherwise.
Source
File: wp-includes/load.php
function wp_doing_cron() {
/**
* Filters whether the current request is a ClassicPress cron request.
*
* @since WP-4.8.0
*
* @param bool $wp_doing_cron Whether the current request is a ClassicPress cron request.
*/
return apply_filters( 'wp_doing_cron', defined( 'DOING_CRON' ) && DOING_CRON );
}
Changelog
Version | Description |
---|---|
WP-4.8.0 | Introduced. |