public function importEventsCron()
    {
        if (get_field('event_daily_import', 'option') == true && $apiUrl = Helper\ApiUrl::buildApiUrl()) {
            new Parser\EventManagerApi($apiUrl);
        }
    }
public function importEventsCron()
    {
        if (get_field('event_daily_import', 'option') == true && $apiUrl = Helper\ApiUrl::buildApiUrl()) {
            new Parser\EventManagerApi($apiUrl);
        }
    }
public function importEventsCron ( ) { if ( get_field ( 'event_daily_import' , 'option' ) == true && $ apiUrl = Helper \ ApiUrl :: buildApiUrl ( ) ) { new Parser \ EventManagerApi ( $ apiUrl ) ; } }
Start cron jobs
@return void
Start cron jobs