Filters whether the current request is a WordPress cron request.
$wp_doing_cronbool
return apply_filters( 'wp_doing_cron', defined( 'DOING_CRON' ) && DOING_CRON );
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_doing_cron