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 f335ac9d7dcfa9f117047647281d770c3e17b1fb..60603b9c4768f8da3f0c7242b0e5c1a190bdaaee 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 77db867bfd8173d8ecc74e1c510461b7ff4a19eb..f1acff6cd1c9b28733115669755d268f2295580c 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' );