public static function set_uninstall() { if (!current_user_can('activate_plugins')) { return; } check_admin_referer('bulk-plugins'); if (!EM_MS_GLOBAL || EM_MS_GLOBAL && is_main_blog()) { ESS_Database::deteteTable(); } // -- Remove Schedule Hook (CRON tasks) ESS_IO::unset_crons(); // Important: Check if the file is the one that was registered during the uninstall hook. if (__FILE__ != WP_UNINSTALL_PLUGIN) { return; } }