Uses
| Uses | Description |
|---|---|
| wp-includes/load.php: wp_doing_cron | Filters whether the current request is a WordPress cron request. |
| wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Determines whether the current request is a WordPress cron request.
(bool) True if it's a WordPress cron request, false otherwise.
File: wp-includes/load.php
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 );
} | Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_doing_cron