PluginProbe
Nested Pages / 1.1.9
Nested Pages v1.1.9
3.3.1 3.2.15 3.2.14 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 All 106 releases
wp-nested-pages / includes / class-np-activate.php
class-np-activate.php
53 lines 693 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Activation
4 */
5 require_once('class-np-activate-upgrades.php');
6 class NP_Activate {
7
8 /**
9 * Plugin Version
10 */
11 private $version;
12
13
14 public function __construct()
15 {
16 $this->install();
17 }
18
19
20 /**
21 * Activation Hook
22 */
23 public function install()
24 {
25 $this->version = '1.1.9';
26 new NP_ActivateUpgrades($this->version);
27 $this->setVersion();
28 $this->setOptions();
29 }
30
31
32 /**
33 * Set the Plugin Version
34 */
35 private function setVersion()
36 {
37 update_option('nestedpages_version', $this->version);
38 }
39
40
41
42 /**
43 * Set Default Options
44 */
45 private function setOptions()
46 {
47 if ( !get_option('nestedpages_menusync') ){
48 update_option('nestedpages_menusync', 'sync');
49 }
50 }
51
52
53 }