Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Xerxes Parsi
authored and
Xerxes Parsi
committed
Mar 10, 2016
1 parent
b6c16a4
commit 82da532
Showing
4 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
//if uninstall not called from WordPress exit | ||
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { | ||
exit(); | ||
} | ||
//drop our twp_log table and delete all of our options from WordPress options table. | ||
global $wpdb; | ||
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}twp_logs" ); | ||
$wpdb->query( "DELETE FROM {$wpdb->prefix}options WHERE option_name = 'twp_%'" ); |