-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.php
33 lines (27 loc) · 843 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
<?php
// if uninstall.php is not called by WordPress, die
if (!defined('WP_UNINSTALL_PLUGIN')) {
die;
}
// Loop through and delete all options with this plugin's prefix
// Removed in v1.2 because it's too resource heavy. Will remain here commented-out.
/*
$option_prefix = 'jdmnll_';
foreach ( wp_load_alloptions() as $option => $value ) {
if ( strpos( $option, $option_prefix ) === 0 ) {
delete_option( $option );
}
}
*/
// Remove Activation Date
delete_option('jdmnll_activation_date');
delete_option('jdmnll_no_bug');
// Remove options set in settings.php
delete_option('jdmnll_1stimg');
delete_option('jdmnll_nthimg');
// for site options in Multisite
delete_site_option('jdmnll_activation_date');
delete_site_option('jdmnll_no_bug');
delete_site_option('jdmnll_1stimg');
delete_site_option('jdmnll_nthimg');
?>