uninstall.php in SiteGuard WP Plugin 1.1.0, at uninstall.php
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 4 | exit (); |
| 5 | } |
| 6 | |
| 7 | function delete_siteguard_plugin( ) { |
| 8 | global $wpdb; |
| 9 | |
| 10 | delete_option( 'siteguard_config' ); |
| 11 | |
| 12 | $table_name = $wpdb->prefix . 'siteguard_login'; |
| 13 | $wpdb->query( "DROP TABLE IF EXISTS $table_name;" ); |
| 14 | |
| 15 | $table_name = $wpdb->prefix . 'siteguard_history'; |
| 16 | $wpdb->query( "DROP TABLE IF EXISTS $table_name;" ); |
| 17 | } |
| 18 | |
| 19 | delete_siteguard_plugin( ); |
| 20 | |
| 21 | ?> |
| 22 |