addQueryArgFilter('onemcp_pro_updater_filter_args'); // Show the text to install the license key add_filter('puc_manual_final_check_link-onemcp-pro', 'onemcp_pro_updater_check_link', 10, 1); \OneMCPPro\Plugin::hooks(); } function onemcp_pro_check_updates(){ $current_version = get_option('onemcp_pro_version'); $version = (int) str_replace('.', '', $current_version); // Is it first run ? if(empty($current_version)){ \OneMCPPro\Install::activate(); return; } update_option('onemcp_pro_version', ONEMCP_PRO_VERSION); }