On this page
wp_doing_cron(): bool
Determines whether the current request is a WordPress cron request.
Return
bool True if it's a WordPress cron request, false otherwise.
Source
File: wp-includes/load.php. View all references
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 );
}
Hooks
- apply_filters( 'wp_doing_cron',
bool $wp_doing_cron ) -
Filters whether the current request is a WordPress cron request.
Related
Uses
| Uses | Description |
|---|---|
| apply_filters() wp-includes/plugin.php | Calls the callback functions that have been added to a filter hook. |
Used By
| Used By | Description |
|---|---|
| Plugin_Upgrader::active_before() wp-admin/includes/class-plugin-upgrader.php | Turns on maintenance mode before attempting to background update an active plugin. |
| Plugin_Upgrader::active_after() wp-admin/includes/class-plugin-upgrader.php | Turns off maintenance mode after upgrading an active plugin. |
| Plugin_Upgrader::deactivate_plugin_before_upgrade() wp-admin/includes/class-plugin-upgrader.php | Deactivates a plugin before it is upgraded. |
| get_core_checksums() wp-admin/includes/update.php | Gets and caches the checksums for the given version of WordPress. |
| _unzip_file_ziparchive() wp-admin/includes/file.php | Attempts to unzip an archive using the ZipArchive class. |
| _unzip_file_pclzip() wp-admin/includes/file.php | Attempts to unzip an archive using the PclZip library. |
| wp_version_check() wp-includes/update.php | Checks WordPress version against the newest version. |
| wp_update_plugins() wp-includes/update.php | Checks for available updates to plugins based on the latest versions hosted on WordPress.org. |
| wp_update_themes() wp-includes/update.php | Checks for available updates to themes based on the latest versions hosted on WordPress.org. |
Changelog
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_doing_cron