run(); } adscout_run(); $plugin = new AdScout(); if($plugin->woocommerce) { add_action('adscout_run_job_queue', 'adscout_run_job_queue'); if (!wp_next_scheduled('adscout_run_job_queue')) { wp_schedule_event( strtotime('today midnight'), 'daily', 'adscout_run_job_queue'); } }