1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
defined('EVENT_ESPRESSO_VERSION') || exit; |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class EE_Bootstrap |
9
|
|
|
* Just a frame for attaching the rest of the system to |
10
|
|
|
* |
11
|
|
|
* @package Event Espresso |
12
|
|
|
* @subpackage core |
13
|
|
|
* @author Brent Christensen |
14
|
|
|
* @since 4.8.20 |
15
|
|
|
* |
16
|
|
|
*/ |
17
|
|
|
class EE_Bootstrap |
18
|
|
|
{ |
19
|
|
|
|
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* load_espresso_addons |
23
|
|
|
* runs during the WP 'plugins_loaded' action at priority 1 |
24
|
|
|
* and is the initial loading phase for EE addons |
25
|
|
|
* no other logic should be performed at this point |
26
|
|
|
*/ |
27
|
|
|
public static function load_espresso_addons() |
28
|
|
|
{ |
29
|
|
|
do_action('AHEE__EE_Bootstrap__load_espresso_addons'); |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
|
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* detect_activations_or_upgrades |
36
|
|
|
* runs during the WP 'plugins_loaded' action at priority 3 |
37
|
|
|
* Now that all of the addons have been loaded, |
38
|
|
|
* we can determine if anything needs activating or upgrading |
39
|
|
|
*/ |
40
|
|
|
public static function detect_activations_or_upgrades() |
41
|
|
|
{ |
42
|
|
|
do_action('AHEE__EE_Bootstrap__detect_activations_or_upgrades'); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
|
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* load_core_configuration |
49
|
|
|
* runs during the WP 'plugins_loaded' action at priority 5 |
50
|
|
|
* Now that the database is assumed to be at the correct version |
51
|
|
|
* we can load and set all of the system configurations |
52
|
|
|
*/ |
53
|
|
|
public static function load_core_configuration() |
54
|
|
|
{ |
55
|
|
|
do_action('AHEE__EE_Bootstrap__load_core_configuration'); |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
|
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* register_shortcodes_modules_and_widgets |
62
|
|
|
* runs during the WP 'plugins_loaded' action at priority 7 |
63
|
|
|
* and handles registering all o four shortcodes, modules and widgets |
64
|
|
|
* so that they are ready to be used throughout the system |
65
|
|
|
*/ |
66
|
|
|
public static function register_shortcodes_modules_and_widgets() |
67
|
|
|
{ |
68
|
|
|
do_action('AHEE__EE_Bootstrap__register_shortcodes_modules_and_widgets'); |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
|
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* brew_espresso |
75
|
|
|
* runs during the WP 'plugins_loaded' action at priority 9 |
76
|
|
|
* bootstrapping is considered complete at this point, |
77
|
|
|
* so let the fun begin... |
78
|
|
|
*/ |
79
|
|
|
public static function brew_espresso() |
80
|
|
|
{ |
81
|
|
|
do_action('AHEE__EE_Bootstrap__brew_espresso'); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
|
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @deprecated 4.9.53 |
88
|
|
|
*/ |
89
|
|
|
public function run_request_stack() |
90
|
|
|
{ |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
|
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @deprecated 4.9.53 |
97
|
|
|
*/ |
98
|
|
|
public function build_request_stack() |
99
|
|
|
{ |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
} |
103
|
|
|
// End of file EE_Bootstrap.core.php |
104
|
|
|
// Location: /EE_Bootstrap.core.php |
105
|
|
|
|