From: danix Date: Thu, 5 Nov 2020 12:37:46 +0000 (+0100) Subject: Added uninstall functionality to remove all transient data stored in the X-Git-Tag: release_05112020-1338 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;ds=sidebyside;p=danixland-covid-italy.git Added uninstall functionality to remove all transient data stored in the DB. Updated version modificato: danixland-covid-italy.php modificato: uninstall.php --- 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' );