Tribe__Context::doing_cron()
Checks whether the context of the current HTTP request is a Cron one or not.
Return
(bool) Whether the context of the current HTTP request is a Cron one or not.
Source
File: src/Tribe/Context.php
public function doing_cron( $doing_cron = null ) {
if ( null !== $doing_cron ) {
$this->doing_cron = (bool) $doing_cron;
} else {
$this->doing_cron = defined( 'DOING_CRON' ) && DOING_CRON;
}
return $this->doing_cron;
}
Changelog
| Version | Description |
|---|---|
| 4.9.5 | Removed the $doing_cron parameter. |
| 4.7.23 | Introduced. |