From f1ec6dab8082a7d76b7b35cf23f0390d976521b8 Mon Sep 17 00:00:00 2001 From: danix Date: Thu, 5 Nov 2020 13:37:46 +0100 Subject: [PATCH] Added uninstall functionality to remove all transient data stored in the DB. Updated version modificato: danixland-covid-italy.php modificato: uninstall.php --- danixland-covid-italy.php | 2 +- uninstall.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/danixland-covid-italy.php b/danixland-covid-italy.php index f335ac9..60603b9 100644 --- a/danixland-covid-italy.php +++ b/danixland-covid-italy.php @@ -12,7 +12,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); * Plugin Name: danixland-covid-italy * Plugin URI: https://danix.xyz * Description: Show the latest covid19 stats for italy in a widget - * Version: 1.0 + * Version: 1.1 * Author: Danilo 'danix' M. * Author URI: https://danix.xyz * License: GPL-2.0+ diff --git a/uninstall.php b/uninstall.php index 77db867..f1acff6 100644 --- a/uninstall.php +++ b/uninstall.php @@ -29,3 +29,11 @@ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit; } + +/* + * Delete all transient data saved by the plugin + * @since 1.1 + * + * @package Dnxcovita + */ +delete_transient( 'dnxcovita_data' ); -- 2.20.1