Plugin Directory

Changeset 1668730


Ignore:
Timestamp:
06/01/2017 12:26:39 PM (9 years ago)
Author:
nexuslink
Message:

Update database table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cf7records/trunk/save-contact-details.php

    r1668715 r1668730  
    389389    }
    390390}
     391
     392function register_cf7_untable() {
     393    global $wpdb;
     394    $table_name = $wpdb->prefix . "savedata";
     395    $sql = "DROP TABLE IF EXISTS $table_name;";
     396    $wpdb->query($sql);
     397    delete_option("my_plugin_db_version");
     398}
     399
     400register_uninstall_hook(__FILE__, 'register_cf7_untable');
Note: See TracChangeset for help on using the changeset viewer.