File tree Expand file tree Collapse file tree 1 file changed +31
-4
lines changed Expand file tree Collapse file tree 1 file changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,16 @@ public function register_services() {
45
45
46
46
if ( is_admin () ) {
47
47
add_action ( 'init ' , [ $ this , 'load_settings ' ] );
48
-
48
+ add_action ( 'init ' , [ $ this , 'load_provisioning ' ] );
49
+ add_action ( 'init ' , [ $ this , 'load_integrations_provisioning ' ] );
50
+
49
51
new Admin \Upgrades ();
50
52
new Admin \Filters ();
51
53
new Admin \Actions ();
52
54
new Admin \Module ();
53
- new Admin \Provisioning ();
54
- new Admin \Provisioning \Integrations ();
55
55
}
56
56
57
- new Integrations ( );
57
+ add_action ( ' init ' , [ $ this , ' load_integrations ' ] );
58
58
new Actions ();
59
59
new Ajax ();
60
60
new Compatibility ();
@@ -66,6 +66,33 @@ public function load_settings() {
66
66
new Admin \Settings \Page ();
67
67
}
68
68
69
+ /**
70
+ * Load @see Admin\Provisioning()
71
+ *
72
+ * @return void
73
+ */
74
+ public function load_provisioning () {
75
+ new Admin \Provisioning ();
76
+ }
77
+
78
+ /**
79
+ * Load @see Admin\Provisioning\Integrations()
80
+ *
81
+ * @return void
82
+ */
83
+ public function load_integrations_provisioning () {
84
+ new Admin \Provisioning \Integrations ();
85
+ }
86
+
87
+ /**
88
+ * Load @see Integrations()
89
+ *
90
+ * @return void
91
+ */
92
+ public function load_integrations () {
93
+ new Integrations ();
94
+ }
95
+
69
96
/**
70
97
* Loads the plugin's translated strings.
71
98
*
You can’t perform that action at this time.
0 commit comments