forked from Alecaddd/awps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
55 lines (47 loc) · 878 Bytes
/
init.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
<?php
namespace awps;
use awps\core\tags;
use awps\core\widgets;
use awps\api\customizer;
use awps\api\settings;
use awps\api\Widgets\TextWidget;
use awps\setup\setup;
use awps\setup\menus;
use awps\setup\header;
use awps\setup\enqueue;
use awps\custom\custom;
use awps\custom\admin;
use awps\custom\extras;
use awps\plugins\jetpack;
use awps\plugins\acf;
class init
{
private static $loaded = false;
/*
* Construct class to activate actions and hooks as soon as the class is initialized
*/
public function __construct()
{
$this->initClasses();
}
public function initClasses()
{
if (self::$loaded) {
return;
}
self::$loaded = true;
new setup();
new enqueue();
new header();
new customizer();
new TextWidget();
new extras();
new jetpack();
new acf();
new menus();
new tags();
new widgets();
new custom();
new admin();
}
}