' . __( 'AdThrive Ads requires PHP 5.6+ and WordPress 4.6+', 'adthrive-ads' ) . '

'; if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } // @codingStandardsIgnoreEnd } /** * Deactivate this plugin */ function adthrive_ads_deactivate_self() { deactivate_plugins( plugin_basename( ADTHRIVE_ADS_FILE ) ); } global $wp_version; if ( version_compare( phpversion(), '5.6', '<' ) || version_compare( $wp_version, '4.6', '<' ) ) { add_action( 'admin_notices', 'adthrive_ads_php_notice' ); add_action( 'admin_init', 'adthrive_ads_deactivate_self' ); return; } else { require_once 'adthrive-ads-loader.php'; require_once 'class-main.php'; $adthrive_ads = new AdThrive_Ads\Main(); // phpcs:disable $update_checker = new PluginUpdateChecker_2_0( 'https://ads.adthrive.com/api/v1/host/plugin/', ADTHRIVE_ADS_FILE, 'adthrive-ads', 1 ); $update_checker->addURLPathFilter(array($adthrive_ads, 'filter_update_checks')); // phpcs:enable }