GLM_MEMBERS_PLUGIN_FILE_PATH,
array($this, 'install')
);
- register_uninstall_hook(
- GLM_MEMBERS_PLUGIN_FILE_PATH,
- array($this, 'delete')
- );
add_action('plugins_loaded', array($this, 'glm_members_update_db_check'));
$this->membersTable = $this->wpdb->prefix . GLM_MEMBERS_MEMBER_TABLE;
}
}
- public function delete()
- {
- $sql = "
- DROP TABLE IF EXISTS {$this->membersTable} ";
- $this->wpdb->query($sql);
- delete_option(GLM_MEMBERS_VRS_OPTION_NAME);
- }
-
}