Tribe__Process__Handler::__construct()
Tribe__Process__Handler constructor.
Source
File: src/Tribe/Process/Handler.php
public function __construct() {
$class = get_class( $this );
$this->action = call_user_func( array( $class, 'action' ) );
parent::__construct();
$this->cron_hook_identifier = $this->identifier;
$this->feature_detection = tribe( 'feature-detection' );
/*
* This object might have been built while processing crons so
* we hook on the the object cron identifier to handle the task
* if the cron-triggered action ever fires.
*/
add_action( $this->cron_hook_identifier, array( $this, 'maybe_handle' ) );
}
Changelog
| Version | Description |
|---|---|
| 4.7.12 | Introduced. |