Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | public function run(): void |
||
10 | { |
||
11 | if (!$this->isInstalled()) { |
||
12 | return; |
||
13 | } |
||
14 | if (!$this->isVersionSupported()) { |
||
15 | $this->notify('Flatsome'); |
||
16 | return; |
||
17 | } |
||
18 | $this->hook(Controller::class, [ |
||
19 | ['printInlineScripts', 'ux_builder_enqueue_scripts'], |
||
20 | ['printInlineStyles', 'ux_builder_enqueue_scripts'], |
||
21 | ['registerShortcodes', 'init'], |
||
22 | ['searchAssignedPosts', 'wp_ajax_ux_builder_search_posts', 1], |
||
23 | ['searchAssignedUsers', 'wp_ajax_ux_builder_search_posts', 2], |
||
24 | ]); |
||
45 |