broken-link-checker
Last commit date
app
2 years ago
assets
2 years ago
core
2 years ago
languages
2 years ago
legacy
2 years ago
broken-link-checker.php
2 years ago
readme.txt
2 years ago
uninstall.php
2 years ago
uninstall.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @author Janis Elsts |
| 4 | * @copyright 2010 |
| 5 | * |
| 6 | * The terrifying uninstallation script. |
| 7 | */ |
| 8 | |
| 9 | if ( defined( 'ABSPATH' ) && defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 10 | |
| 11 | // Remove V2 options. |
| 12 | delete_option( 'blc_settings' ); |
| 13 | delete_option( 'wpmudev_blc_reviewed' ); |
| 14 | |
| 15 | // Remove the plugin's settings & installation log. |
| 16 | delete_option( 'wsblc_options' ); |
| 17 | delete_option( 'blc_activation_enabled' ); |
| 18 | delete_option( 'blc_installation_log' ); |
| 19 | |
| 20 | // Remove the database tables. |
| 21 | $mywpdb = $GLOBALS['wpdb']; |
| 22 | if ( isset( $mywpdb ) ) { |
| 23 | // EXTERMINATE! |
| 24 | $mywpdb->query( "DROP TABLE IF EXISTS {$mywpdb->prefix}blc_linkdata, {$mywpdb->prefix}blc_postdata, {$mywpdb->prefix}blc_instances, {$mywpdb->prefix}blc_links, {$mywpdb->prefix}blc_synch, {$mywpdb->prefix}blc_filters" ); |
| 25 | } |
| 26 | } |
| 27 |