forked from Ramoonus/jquery-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.php
48 lines (43 loc) · 894 Bytes
/
uninstall.php
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
<?php
// If uninstall not called from WordPress, then exit.
if (! defined('WP_UNINSTALL_PLUGIN')) {
exit();
}
/**
* Uninstaller wrapper
*
* @since 4.0
* @todo return false on error
* @return bool
* @version 3.1
*/
function jqu_uninstall()
{
/**
* Define all options in use in an array
*
* @version 2.1.4
*/
$options = array(
'jqu_compatibility_blockui',
'jqu_shortcode',
'jqu_replace_jquery',
'jqu_replace_jquery_migrate',
'jqu_replace_jquery_admin',
'jqu_replace_jquery_login',
'jqu_replace_jquery_mobile',
'jqu_replace_jquery_ui',
'jqu_include_noconflict',
'jqu_qunit'
);
/**
* While have an option, delete it
*
* @version 1.0
*/
foreach ($options as $option) {
delete_option($option);
}
return true;
}
jqu_uninstall();