-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunmus_install.php
65 lines (56 loc) · 1.39 KB
/
unmus_install.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Installation, Deinstallation, Deactivation
*
* @package unmus
* @since 0.7
*/
// Security: Stops code execution if WordPress is not loaded
if (!defined('ABSPATH')) { exit; }
/**
* Installs the plugin
*
* Function will triggered with plugin activation
*
* @since 0.1
*/
function unmus_activate () {
add_option('unmus_environment',"");
add_option('unmus_maintenance',"0");
add_option('unmus_raketenstaub_amountofposts',"10");
add_option('unmus_zirkusliebe_amountofposts',"10");
add_option('unmus_ello_amountofposts',"10");
add_option('unmus_wordpress_update_auto',"0");
add_option('unmus_plugins_update_auto',"0");
add_option('unmus_themes_update_auto',"0");
add_option('unmus_developer',"0");
}
/**
* Deactivates the plugin
*
* Function will triggered with plugin deactivation
*
* @since 0.1
*/
function unmus_deactivate () {
// Code here
}
/**
* Deinstalls the plugin
*
* Function will triggered with plugin deletion
*
* @since 0.1
*/
function unmus_delete () {
delete_option('unmus_environment');
delete_option('unmus_maintenance');
delete_option('unmus_raketenstaub_amountofposts');
delete_option('unmus_zirkusliebe_amountofposts');
delete_option('unmus_ello_amountofposts');
delete_option('unmus_wordpress_update_auto');
delete_option('unmus_plugins_update_auto');
delete_option('unmus_themes_update_auto');
delete_option('unmus_developer');
}
?>