wp_doing_cron WordPress Filter Hook
The wp_doing_cron hook is called whenever the WordPress cron system is triggered. This can happen when a user visits your site, or when an automated system (such as a plugin or theme) calls the cron function.
apply_filters( 'wp_doing_cron', bool $wp_doing_cron ) #
Filters whether the current request is a WordPress cron request.
Parameters
- $wp_doing_cron
(bool)Whether the current request is a WordPress cron request.
Source
File: wp-includes/load.php
Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |