Added uninstall functionality to remove all transient data stored in the master release_05112020-1338
authordanix <danix@danix.xyz>
Thu, 5 Nov 2020 12:37:46 +0000 (13:37 +0100)
committerdanix <danix@danix.xyz>
Thu, 5 Nov 2020 12:37:46 +0000 (13:37 +0100)
DB. Updated version

modificato:             danixland-covid-italy.php
modificato:             uninstall.php

danixland-covid-italy.php
uninstall.php

index f335ac9..60603b9 100644 (file)
@@ -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+
index 77db867..f1acff6 100644 (file)
 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
        exit;
 }
+
+/*
+ * Delete all transient data saved by the plugin
+ * @since 1.1
+ *
+ * @package Dnxcovita
+ */
+delete_transient( 'dnxcovita_data' );