redirect-redirection
Last commit date
analyst
2 years ago
assets
2 years ago
includes
2 years ago
modules
2 years ago
activation.php
2 years ago
deactivation.php
2 years ago
index.html
2 years ago
readme.txt
2 years ago
redirect-redirection.php
2 years ago
todo.txt
2 years ago
uninstall.php
2 years ago
uninstall.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | if (!defined("ABSPATH")) { |
| 4 | exit(); |
| 5 | } |
| 6 | |
| 7 | include_once "includes/irrp-constants.php"; |
| 8 | include_once "includes/irrp-db-manager.php"; |
| 9 | |
| 10 | // if uninstall.php is not called by WordPress, die |
| 11 | if (!defined("WP_UNINSTALL_PLUGIN")) { |
| 12 | die; |
| 13 | } |
| 14 | |
| 15 | delete_option(IRRPConstants::OPTIONS_MAIN); |
| 16 | delete_site_option(IRRPConstants::OPTIONS_MAIN); |
| 17 | |
| 18 | $dbManager = new IRRPDBManager(); |
| 19 | $dbManager->dropTables(); |
| 20 |