PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.2.7
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.2.7
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / src / App / Service / Addons / AddonService.php
wp-all-export / src / App / Service / Addons Last commit date
AddonNotFoundException.php 7 years ago AddonService.php 7 years ago
AddonService.php
37 lines
1 <?php
2
3 namespace Wpae\App\Service\Addons;
4
5
6 class AddonService
7 {
8 public function isUserAddonActive() {
9 return defined('PMUE_EDITION');
10 }
11
12 public function isUserAddonActiveAndIsUserExport()
13 {
14 return $this->isUserAddonActive() && \XmlExportUser::$is_active;
15 }
16
17 public function userExportsExistAndAddonNotInstalled()
18 {
19
20 $exports = new \PMXE_Export_List();
21 $exports->getBy('parent_id', 0)->convertRecords();
22
23 foreach ($exports as $item) {
24
25 if (
26 ((in_array('users', $item['options']['cpt']) || in_array('shop_customer', $item['options']['cpt'])) && !$this->isUserAddonActive()) ||
27 ($item['options']['export_type'] == 'advanced' && $item['options']['wp_query_selector'] == 'wp_user_query' && !$this->isUserAddonActive())
28 ) {
29 return true;
30 }
31
32 }
33
34 return false;
35 }
36
37 }