Added uninstall functionality to remove all transient data stored in the
[danixland-covid-italy.git] / uninstall.php
index db3ef81..f1acff6 100644 (file)
  * For more information, see the following discussion:
  * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
  *
- * @link       https://danix.xyz
- * @since      0.0.1
+ * @link  https://danix.xyz
+ * @since 0.0.1
  *
- * @package    Dnxcovita
+ * @package Dnxcovita
  */
 
 // If uninstall not called from WordPress, then exit.
 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
        exit;
 }
+
+/*
+ * Delete all transient data saved by the plugin
+ * @since 1.1
+ *
+ * @package Dnxcovita
+ */
+delete_transient( 'dnxcovita_data' );