addQueryArgFilter('speedycache_pro_updater_filter_args'); // Show the text to install the license key add_filter('puc_manual_final_check_link-speedycache-pro', 'speedycache_pro_updater_check_link', 10, 1); if(!is_admin() && !current_user_can('activate_plugins')){ return; } include_once SPEEDYCACHE_PRO_DIR . '/main/admin.php'; add_action('admin_notices', 'speedycachepro_free_version_nag'); } // Nag when plugins dont have same version. function speedycachepro_free_version_nag(){ if(!defined('SPEEDYCACHE_VERSION')){ return; } if(version_compare(SPEEDYCACHE_VERSION, SPEEDYCACHE_PRO_VERSION) > 0){ echo '

You are using an Older version of SpeedyCache Pro. We suggest you upgrade SpeedyCache Pro to be able to use SpeedyCache without any issue.

'; }elseif(version_compare(SPEEDYCACHE_VERSION, SPEEDYCACHE_PRO_VERSION) < 0){ echo '

You are using an Older version of the Free version of SpeedyCache. We suggest you update the free version of SpeedyCache to be able to use SpeedyCache without any issue.

'; } } //register_deactivation_hook( __FILE__, '\SpeedyCache\Install::deactivate'); // Load WP CLI command(s) on demand. if(defined('WP_CLI') && !empty(WP_CLI) && defined('SPEEDYCACHE_PRO')){ include_once SPEEDYCACHE_PRO_DIR.'/main/cli.php'; }