Tribe__Process__Queue::__construct()
Tribe__Process__Queue constructor.
Source
File: src/Tribe/Process/Queue.php
public function __construct() {
$class = get_class( $this );
$this->action = call_user_func( array( $class, 'action' ) );
$this->feature_detection = tribe( 'feature-detection' );
parent::__construct();
/*
* 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->identifier, array( $this, 'maybe_handle' ) );
}
Changelog
| Version | Description |
|---|---|
| 4.9.5 | Pulled method code from the WP_Background_Process class. |
| 4.7.12 | Introduced. |