diff options
| author | danix <danix@danix.xyz> | 2020-11-05 13:37:46 +0100 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2020-11-05 13:37:46 +0100 |
| commit | f1ec6dab8082a7d76b7b35cf23f0390d976521b8 (patch) | |
| tree | a4d8cfa9e2a97aa6e91c9f98fcd5d1aa4899739c | |
| parent | 82cad5d9c192c1abd4c1a5d88a3228e39c10cb48 (diff) | |
| download | danixland-covid-italy-master.tar.gz danixland-covid-italy-master.zip | |
Added uninstall functionality to remove all transient data stored in theHEADrelease_05112020-1338master
DB. Updated version
modificato: danixland-covid-italy.php
modificato: uninstall.php
| -rw-r--r-- | danixland-covid-italy.php | 2 | ||||
| -rw-r--r-- | uninstall.php | 8 |
2 files changed, 9 insertions, 1 deletions
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' ); |
