| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* |
| 5 |
* This file runs when the plugin in uninstalled (deleted). |
| 6 |
* This will not run when the plugin is deactivated. |
| 7 |
* Ideally you will add all your clean-up scripts here |
| 8 |
* that will clean-up unused meta, options, etc. in the database. |
| 9 |
* |
| 10 |
*/ |
| 11 |
|
| 12 |
// If plugin is not being uninstalled, exit (do nothing) |
| 13 |
if (!defined('WP_UNINSTALL_PLUGIN')) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
// Do something here if plugin is being uninstalled. |
| 18 |
|