update
This commit is contained in:
14
wp-content/plugins/header-footer-code-manager/uninstall.php
Normal file
14
wp-content/plugins/header-footer-code-manager/uninstall.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// If uninstall is not called from WordPress, exit
|
||||
if (! defined('WP_UNINSTALL_PLUGIN') ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$option_name = 'hfcm_db_version';
|
||||
delete_option($option_name);
|
||||
|
||||
// Drop a custom db table
|
||||
global $wpdb;
|
||||
$table_name = $wpdb->prefix . 'hfcm_scripts';
|
||||
|
||||
$wpdb->query("DROP TABLE IF EXISTS $table_name");
|
||||
Reference in New Issue
Block a user