function deactive(){

global $table_prefix, $wpdb;

$wp_dictionary_category_table = $table_prefix . "wp_dictionary_category";
$sql = "DROP TABLE IF EXISTS $wp_dictionary_category_table;";
$wpdb->query($sql);
}
register_deactivation_hook( __FILE__, 'deactive' );

Advertisements