Tribe__Events__Aggregator__Cron::run()
A Wrapper method to run the Cron Tasks here
Return
(void)
Source
File: src/Tribe/Aggregator/Cron.php
public function run() {
// if the service isn't active, don't do anything
if ( ! tribe( 'events-aggregator.main' )->is_service_active() ) {
return;
}
// if the service has been disabled by the user don't do anything
if ( true === tribe_get_option( 'tribe_aggregator_disable', false ) ) {
return;
}
// Flag that we are running the Task
$this->is_running = true;
/**
* Have a hook be Fired, to allow Priorities to be changed and other methods to be hooked
*/
do_action( 'tribe_aggregator_cron_run' );
// Flag that we stopped running the Cron Task
$this->is_running = false;
}