*/ final class Activator { /** * Activate the plugin and schedule the cron. * * @since 2.0.0 * @return void */ public static function activate() { $cron = new Cron(); $cron->update_adstxt(); $cron->check_presized_div(); $cron->get_fast_cmp(); $cron->check_adstxt(); $cron->check_slots(); if ( version_compare( get_bloginfo( 'version' ), '5.5', '>=' ) ) { $cron->set_auto_update( true ); } if ( ! Options::exists( 'debug-enabled' ) ) { Options::update( 'debug-enabled', true ); } $cron->schedule(); } }