This repository was archived by the owner on Jun 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuninstall.php
More file actions
50 lines (42 loc) · 2.11 KB
/
uninstall.php
File metadata and controls
50 lines (42 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
Countdown Timer Uninstall Module
Version 3.0.3 (kept in step with fergcorp_countdownTimer.php)
Copyright (c) 2009-2012 Andrew Ferguson
---------------------------------------------------------------------------------
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
exit();
//Remove options from wp_options table
delete_option('fergcorp_countdownTimer_deleteOneTimeEvents');
delete_option('fergcorp_countdownTimer_timeFormat');
delete_option('fergcorp_countdownTimer_showYear');
delete_option('fergcorp_countdownTimer_showMonth');
delete_option('fergcorp_countdownTimer_showWeek');
delete_option('fergcorp_countdownTimer_showDay');
delete_option('fergcorp_countdownTimer_showHour');
delete_option('fergcorp_countdownTimer_showMinute');
delete_option('fergcorp_countdownTimer_showSecond');
delete_option('fergcorp_countdownTimer_stripZero');
delete_option('fergcorp_countdownTimer_enableJS');
delete_option('fergcorp_countdownTimer_timeSinceTime');
delete_option('fergcorp_countdownTimer_titleSuffix');
delete_option('fergcorp_countdownTimer_enableShortcodeExcerpt');
delete_option('fergcorp_countdownTimer_oneTimeEvent');
delete_option('fergcorp_countdownTimer_version');
delete_option('widget_fergcorp_countdown_timer_widget');
//Remove metadata for all users from wp_usermeta table
global $wpdb;
$wpdb->query("DELETE FROM $wpdb->usermeta WHERE `meta_key` LIKE '%fergcorp-countdown-timer'");
?>