PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.3
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.3
3.3.3 3.3.2 3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 158 releases
← All changes | includes/Extensions/GlobalFields.php +55 -15 3.2.11 → 3.3.3 View file →
@@ -40,12 +40,15 @@
40 40 }
41 41
42 42 public function tabs() {
43 43 if(defined('NX_DEBUG') && NX_DEBUG){
44 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
44 45 do_action( 'qm/start', __METHOD__ );
46 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
45 47 do_action( 'qm/debug', __METHOD__ );
46 48 }
47 49
50 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
48 51 do_action('nx_before_metabox_load');
49 52
50 53 $tabs = [
51 54 'id' => 'notificationx_metabox_wrapper',
@@ -59,8 +62,9 @@
59 62 'version' => defined('NOTIFICATIONX_VERSION') ? NOTIFICATIONX_VERSION : null,
60 63 'pro_version' => defined('NOTIFICATIONX_PRO_VERSION') ? NOTIFICATIONX_PRO_VERSION : null,
61 64 'is_pro_active' => NotificationX::get_instance()->is_pro(),
62 65 'cus_imp_limit' => Settings::get_instance()->get('settings.custom_notification_import_limit', 100),
66 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
63 67 'is_pro_sources' => apply_filters('nx_is_pro_sources', []),
64 68 'config' => [
65 69 'active' => "source_tab",
66 70 'completionTrack' => true,
@@ -87,8 +91,9 @@
87 91 'type' => 'tabs',
88 92 'name' => 'source'
89 93 ],
90 94 'classes' => "source_tab",
95 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
91 96 'fields' => apply_filters('nx_source_fields', [
92 97 'type_section' => [
93 98 'label' => __("Notification Type", 'notificationx'),
94 99 'name' => "type_section",
@@ -109,8 +114,9 @@
109 114 'value' => $type->id,
110 115 'label' => $type->title,
111 116 'is_pro' => $type->is_pro && ! NotificationX::is_pro(),
112 117 'priority' => $type->priority,
118 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
113 119 'popup' => apply_filters('nx_pro_alert_popup', $type->popup),
114 120 ];
115 121 }, array_values(TypeFactory::get_instance()->get_all())),
116 122 'validation_rules' => [
@@ -130,8 +136,9 @@
130 136 'fields' => [
131 137 'source_error' => [
132 138 'type' => 'message',
133 139 'name' => 'source_error',
140 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
134 141 'messages' => apply_filters('source_error_message', []),
135 142 'rules' => '',
136 143 ],
137 144 'source' => [
@@ -137,8 +144,9 @@
137 144 'source' => [
138 145 // 'label' => "Source",
139 146 'name' => "source",
140 147 'type' => "radio-card",
148 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
141 149 'options' => apply_filters('nx_sources', []),
142 150 'default' => 'woocommerce',
143 151 'style' => [
144 152 'label' => [
@@ -149,8 +157,9 @@
149 157 'required' => true,
150 158 'label' => "Source",
151 159 ],
152 160 'trigger' => [
161 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
153 162 'defaults' => apply_filters( 'nx_source_trigger', [
154 163 "custom_notification" => [
155 164 'show_notification_image' => '@show_notification_image:featured_image',
156 165 ],
@@ -242,12 +251,14 @@
242 251 'type' => 'tabs',
243 252 'name' => 'design'
244 253 ],
245 254 'classes' => "design_tab",
255 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
246 256 'fields' => apply_filters('nx_design_tab_fields', [
247 257 'design_error' => [
248 258 'type' => 'message',
249 259 'name' => 'design_error',
260 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
250 261 'messages' => apply_filters('design_error_message', []),
251 262 'rules' => '',
252 263 ],
253 264 "main_preview" => [
@@ -336,8 +347,9 @@
336 347 // 'label' => "Themes",
337 348 'name' => "themes",
338 349 'type' => "radio-card",
339 350 // 'default' => "conversions_theme-one",
351 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
340 352 'options' => apply_filters('nx_themes', []),
341 353 'priority' => 10,
342 354 'style' => [
343 355 'label' => [
@@ -348,8 +360,9 @@
348 360 'required' => true,
349 361 'label' => "Theme",
350 362 ],
351 363 'trigger' => [
364 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
352 365 'defaults' => apply_filters('nx_themes_trigger', []),
353 366 ],
354 367 'rules' => Rules::logicalRule([
355 368 Rules::is('themes_tab', 'for_desktop'),
@@ -375,8 +388,9 @@
375 388 ),
376 389 'responsive_themes' => [
377 390 'name' => "responsive_themes",
378 391 'type' => "radio-card",
392 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
379 393 'options' => apply_filters('nx_res_themes', []),
380 394 'priority' => 10,
381 395 'style' => [
382 396 'label' => [
@@ -387,8 +401,9 @@
387 401 'required' => true,
388 402 'label' => __("Mobile Responsive Themes",'notificationx'),
389 403 ],
390 404 'trigger' => [
405 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
391 406 'defaults' => apply_filters('nx_themes_trigger_for_responsive', []),
392 407 ],
393 408 ],
394 409 'is_mobile_responsive' => [
@@ -633,8 +648,9 @@
633 648 'type' => 'tabs',
634 649 'name' => 'content'
635 650 ],
636 651 'classes' => "content_tab",
652 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
637 653 'fields' => apply_filters('nx_content_fields', [
638 654 "main_preview" => [
639 655 'label' => __("Preview", 'notificationx'),
640 656 'name' => "main_preview",
@@ -651,8 +667,9 @@
651 667 'rules' => Rules::logicalRule([
652 668 Rules::is( 'type', 'notification_bar' ),
653 669 ]),
654 670 ],
671 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
655 672 'content' => apply_filters('nx_content_field', [
656 673 'label' => __("Content", 'notificationx'),
657 674 'name' => "content",
658 675 'type' => "section",
@@ -663,8 +680,9 @@
663 680 'name' => "notification-template",
664 681 'type' => "group",
665 682 'display' => 'inline',
666 683 'priority' => 90,
684 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
667 685 'fields' => apply_filters('nx_notification_template', [
668 686 "first_param" => [
669 687 // 'label' => __("First Parameter", 'notificationx'),
670 688 'name' => "first_param",
@@ -760,8 +778,9 @@
760 778 'rules' => Rules::is( 'notification-template.sixth_param', 'tag_custom' ),
761 779 ],
762 780
763 781 ]),
782 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
764 783 'rules' => Rules::includes( 'source', apply_filters('nx_notification_template_dependency', []) ),
765 784 ],
766 785 'template_adv' => [
767 786 'label' => __("Advanced Template", 'notificationx'),
@@ -811,8 +830,9 @@
811 830 'name' => 'category_list',
812 831 'type' => 'select',
813 832 'multiple' => true,
814 833 'priority' => 95,
834 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
815 835 'options' => apply_filters('nx_conversion_category_list', []),
816 836 'rules' => Rules::logicalRule([
817 837 Rules::includes('source', ['woocommerce' , 'woo_reviews', "edd", "reviewx", "woo_inline", "edd_inline", "surecart", 'woocommerce_sales','woocommerce_sales_reviews','woocommerce_sales_inline','fluentcart','fluentcart_inline']),
818 838 Rules::is( 'product_control', 'product_category' ),
@@ -823,8 +843,9 @@
823 843 'name' => 'product_list',
824 844 'type' => 'select-async',
825 845 'multiple' => true,
826 846 'priority' => 96,
847 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
827 848 'options' => apply_filters('nx_conversion_product_list', [
828 849 [
829 850 'label' => "Type for more result...",
830 851 'value' => null,
@@ -870,8 +891,9 @@
870 891 'name' => 'exclude_categories',
871 892 'type' => 'select',
872 893 'multiple' => true,
873 894 'priority' => 98,
895 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
874 896 'options' => apply_filters('nx_conversion_category_list', []),
875 897 'rules' => Rules::logicalRule([
876 898 Rules::includes('source', ['woocommerce', 'woo_reviews', "edd", "reviewx", "woo_inline", "edd_inline", "surecart", 'woocommerce_sales','woocommerce_sales_reviews','woocommerce_sales_inline','fluentcart','fluentcart_inline']),
877 899 Rules::is( 'product_exclude_by', 'product_category' ),
@@ -882,8 +904,9 @@
882 904 'name' => 'exclude_products',
883 905 'type' => 'select-async',
884 906 'multiple' => true,
885 907 'priority' => 99,
908 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
886 909 'options' => apply_filters('nx_conversion_product_list', [
887 910 [
888 911 'label' => "Type for more result...",
889 912 'value' => null,
@@ -915,8 +938,9 @@
915 938 'is_pro' => true,
916 939 'priority' => 99.5,
917 940 'default' => ['wc-completed', 'wc-processing'],
918 941 'help' => __("By default it will show Processing & Completed status.",'notificationx'),
942 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
919 943 'options' => apply_filters('nx_woo_order_status', []),
920 944 'info' => InfoTooltipManager::get_instance()->render('order_status'),
921 945 'rules' => Rules::logicalRule([
922 946 Rules::includes('source', ['woocommerce', 'woocommerce_sales', "woo_inline","woocommerce_sales_inline"]),
@@ -932,8 +956,9 @@
932 956 'is_pro' => true,
933 957 'priority' => 99.6,
934 958 'default' => ['processing','fulfilled'],
935 959 'help' => __("By default it will show Processing & Fulfilled status.",'notificationx'),
960 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
936 961 'options' => apply_filters('nx_surecart_order_status', []),
937 962 'info' => InfoTooltipManager::get_instance()->render('order_status'),
938 963 'rules' => Rules::logicalRule([
939 964 Rules::includes('source', ["surecart"]),
@@ -947,8 +972,9 @@
947 972 'is_pro' => true,
948 973 'priority' => 99.8,
949 974 'default' => ['on-hold','completed','processing'],
950 975 'help' => __("By default it will show Processing & Fulfilled status.",'notificationx'),
976 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
951 977 'options' => apply_filters('nx_fluentcart_order_status', []),
952 978 'info' => InfoTooltipManager::get_instance()->render('order_status'),
953 979 'rules' => Rules::logicalRule([
954 980 Rules::includes('source', ["fluentcart"]),
@@ -984,13 +1010,15 @@
984 1010 ]),
985 1011 ],
986 1012 ],
987 1013 ]),
1014 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
988 1015 'gdpr_content' => apply_filters('nx_content_gdpr', [
989 1016 'label' => __("Cookies Content", 'notificationx'),
990 1017 'name' => "content",
991 1018 'type' => "section",
992 1019 'priority' => 95,
1020 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
993 1021 'fields' => apply_filters('nx_content_fields_gdpr', []),
994 1022 'rules' => Rules::is('type', 'gdpr' ),
995 1023 ]),
996 1024 'link_options' => [
@@ -1003,8 +1031,9 @@
1003 1031 'label' => __("Link Type", 'notificationx'),
1004 1032 'name' => "link_type",
1005 1033 'type' => "select",
1006 1034 'default' => 'none',
1035 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1007 1036 'options' => apply_filters('nx_link_types', $this->normalize_fields([
1008 1037 'none' => __('None', 'notificationx'),
1009 1038 ])),
1010 1039 ],
@@ -1030,8 +1059,9 @@
1030 1059 ],
1031 1060 ],
1032 1061 // must be called after nx_link_types filter.
1033 1062 'rules' => Rules::logicalRule([
1063 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1034 1064 [ 'includes', 'source', apply_filters('nx_link_types_dependency', []) ],
1035 1065 Rules::is( 'type', 'gdpr', true ),
1036 1066 ]),
1037 1067 ],
@@ -1046,8 +1076,9 @@
1046 1076 'type' => 'tabs',
1047 1077 'name' => 'manager'
1048 1078 ],
1049 1079 'classes' => "manager_tab",
1080 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1050 1081 'fields' => apply_filters('nx_manager_fields', [
1051 1082 "main_preview" => [
1052 1083 'label' => __("Preview", 'notificationx'),
1053 1084 'name' => "main_preview",
@@ -1075,9 +1106,9 @@
1075 1106 'label' => __("Force Reload", 'notificationx'),
1076 1107 'name' => "gdpr_force_reload",
1077 1108 'type' => "better-toggle",
1078 1109 'default' => false,
1079 - 'toggle_label' => ['toggle_label_1' => __('Enable Force Reload', 'notificationx'), 'toggle_label_2' => __('', 'notificationx')],
1110 + 'toggle_label' => ['toggle_label_1' => __('Enable Force Reload', 'notificationx'), 'toggle_label_2' => ''],
1080 1111 'rules' => Rules::logicalRule([
1081 1112 Rules::is( 'type', 'gdpr' ),
1082 1113 ]),
1083 1114 'info' => __('Choose whether the page should reload after the user accepts cookies. If not, your analytics software won’t register the current page visit, as cookies will only be loaded during the next page load', 'notificationx'),
@@ -1086,9 +1117,9 @@
1086 1117 'label' => __("Cookie Removal", 'notificationx'),
1087 1118 'name' => "gdpr_cookie_removal",
1088 1119 'type' => "better-toggle",
1089 1120 'default' => false,
1090 - 'toggle_label' => ['toggle_label_1' => __('Enable Cookie Removal', 'notificationx'), 'toggle_label_2' => __('', 'notificationx')],
1121 + 'toggle_label' => ['toggle_label_1' => __('Enable Cookie Removal', 'notificationx'), 'toggle_label_2' => ''],
1091 1122 'rules' => Rules::logicalRule([
1092 1123 Rules::is( 'type', 'gdpr' ),
1093 1124 ]),
1094 1125 'info' => __('When cookies are not accepted, non-essential cookies are removed, ensuring compliance with GDPR requirements.', 'notificationx'),
@@ -1168,9 +1199,9 @@
1168 1199 'show_body' => true,
1169 1200 'close_on_body' => true,
1170 1201 'button' => [
1171 1202 'name' => 'tab_info_edit',
1172 - 'text' => __(' ', 'notificationx'),
1203 + 'text' => ' ',
1173 1204 'icon' => [
1174 1205 'type' => 'tabs',
1175 1206 'name' => 'edit_modal'
1176 1207 ],
@@ -1191,9 +1222,9 @@
1191 1222 ],
1192 1223 ],
1193 1224 ],
1194 1225 'necessary_cookie_lists' => [
1195 - 'label' => __('', 'notificationx'),
1226 + 'label' => '',
1196 1227 'name' => 'necessary_cookie_lists',
1197 1228 'type' => 'better-repeater',
1198 1229 'priority' => 10,
1199 1230 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1223,9 +1254,9 @@
1223 1254 'show_body' => true,
1224 1255 'close_on_body' => true,
1225 1256 'button' => [
1226 1257 'name' => 'tab_info_edit',
1227 - 'text' => __(' ', 'notificationx'),
1258 + 'text' => ' ',
1228 1259 'icon' => [
1229 1260 'type' => 'tabs',
1230 1261 'name' => 'edit_modal'
1231 1262 ],
@@ -1246,9 +1277,9 @@
1246 1277 ],
1247 1278 ],
1248 1279 ],
1249 1280 'functional_cookie_lists' => [
1250 - 'label' => __('', 'notificationx'),
1281 + 'label' => '',
1251 1282 'name' => 'functional_cookie_lists',
1252 1283 'type' => 'better-repeater',
1253 1284 'priority' => 10,
1254 1285 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1277,9 +1308,9 @@
1277 1308 'show_body' => true,
1278 1309 'close_on_body' => true,
1279 1310 'button' => [
1280 1311 'name' => 'tab_info_edit',
1281 - 'text' => __(' ', 'notificationx'),
1312 + 'text' => ' ',
1282 1313 'icon' => [
1283 1314 'type' => 'tabs',
1284 1315 'name' => 'edit_modal'
1285 1316 ],
@@ -1300,9 +1331,9 @@
1300 1331 ],
1301 1332 ],
1302 1333 ],
1303 1334 'analytics_cookie_lists' => [
1304 - 'label' => __('', 'notificationx'),
1335 + 'label' => '',
1305 1336 'name' => 'analytics_cookie_lists',
1306 1337 'type' => 'better-repeater',
1307 1338 'priority' => 10,
1308 1339 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1331,9 +1362,9 @@
1331 1362 'show_body' => true,
1332 1363 'close_on_body' => true,
1333 1364 'button' => [
1334 1365 'name' => 'tab_info_edit',
1335 - 'text' => __(' ', 'notificationx'),
1366 + 'text' => ' ',
1336 1367 'icon' => [
1337 1368 'type' => 'tabs',
1338 1369 'name' => 'edit_modal'
1339 1370 ],
@@ -1354,9 +1385,9 @@
1354 1385 ],
1355 1386 ],
1356 1387 ],
1357 1388 'performance_cookie_lists' => [
1358 - 'label' => __('', 'notificationx'),
1389 + 'label' => '',
1359 1390 'name' => 'performance_cookie_lists',
1360 1391 'type' => 'better-repeater',
1361 1392 'priority' => 10,
1362 1393 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1385,9 +1416,9 @@
1385 1416 'show_body' => true,
1386 1417 'close_on_body' => true,
1387 1418 'button' => [
1388 1419 'name' => 'tab_info_edit',
1389 - 'text' => __(' ', 'notificationx'),
1420 + 'text' => ' ',
1390 1421 'icon' => [
1391 1422 'type' => 'tabs',
1392 1423 'name' => 'edit_modal'
1393 1424 ],
@@ -1408,9 +1439,9 @@
1408 1439 ],
1409 1440 ],
1410 1441 ],
1411 1442 'advertising_cookie_lists' => [
1412 - 'label' => __('', 'notificationx'),
1443 + 'label' => '',
1413 1444 'name' => 'advertising_cookie_lists',
1414 1445 'type' => 'better-repeater',
1415 1446 'priority' => 10,
1416 1447 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1439,9 +1470,9 @@
1439 1470 'show_body' => true,
1440 1471 'close_on_body' => true,
1441 1472 'button' => [
1442 1473 'name' => 'tab_info_edit',
1443 - 'text' => __(' ', 'notificationx'),
1474 + 'text' => ' ',
1444 1475 'icon' => [
1445 1476 'type' => 'tabs',
1446 1477 'name' => 'edit_modal'
1447 1478 ],
@@ -1462,9 +1493,9 @@
1462 1493 ],
1463 1494 ],
1464 1495 ],
1465 1496 'uncategorized_cookie_lists' => [
1466 - 'label' => __('', 'notificationx'),
1497 + 'label' => '',
1467 1498 'name' => 'uncategorized_cookie_lists',
1468 1499 'type' => 'better-repeater',
1469 1500 'priority' => 10,
1470 1501 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1492,8 +1523,9 @@
1492 1523 'type' => 'tabs',
1493 1524 'name' => 'display'
1494 1525 ],
1495 1526 'classes' => "display_tab",
1527 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1496 1528 'fields' => apply_filters('nx_display_fields', [
1497 1529 "main_preview" => [
1498 1530 'label' => __("Preview", 'notificationx'),
1499 1531 'name' => "main_preview",
@@ -1606,8 +1638,9 @@
1606 1638 "youtube",
1607 1639 "woocommerce_sales",
1608 1640 'woocommerce_sales_reviews',
1609 1641 ] ),
1642 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1610 1643 'options' => apply_filters('nx_show_image_options', array(
1611 1644 'none' => [
1612 1645 'value' => 'none',
1613 1646 'label' => __('None', 'notificationx'),
@@ -1694,8 +1727,9 @@
1694 1727 'name' => "show_on",
1695 1728 'type' => "select",
1696 1729 'default' => "everywhere",
1697 1730 'priority' => 5,
1731 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1698 1732 'options' => apply_filters('nx_show_on_options', $this->normalize_fields([
1699 1733 'everywhere' => __('Show Everywhere', 'notificationx'),
1700 1734 'on_selected' => __('Show On Selected', 'notificationx'),
1701 1735 'hide_on_selected' => __('Hide On Selected', 'notificationx'),
@@ -1739,8 +1773,9 @@
1739 1773 'type' => 'tabs',
1740 1774 'name' => 'customize'
1741 1775 ],
1742 1776 'classes' => "customize_tab",
1777 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1743 1778 'fields' => apply_filters('nx_customize_fields', [
1744 1779 "main_preview" => [
1745 1780 'label' => __("Preview", 'notificationx'),
1746 1781 'name' => "main_preview",
@@ -2240,9 +2275,9 @@
2240 2275 'hour_minutes_section' => [
2241 2276 'name' => "hour_minutes_section",
2242 2277 'type' => "section",
2243 2278 'rules' => Rules::logicalRule([
2244 - Rules::includes('source', ['woocommerce', 'woocommerce_sales', 'woocommerce_sales_reviews', 'custom_notification_conversions', 'surecart', 'edd', 'tutor', 'learndash', 'learnpress', 'cf7', 'wp_comments', 'njf', 'wpf', 'fluentform', 'elementor_form', 'custom_notification', 'grvf', 'mailchimp', 'convertkit', 'ActiveCampaign', 'zapier_email_subscription', 'give', 'woo_reviews', 'freemius_conversions', 'freemius_reviews', 'zapier_conversions', 'zapier_reviews']),
2279 + Rules::includes('source', ['woocommerce', 'woocommerce_sales', 'woocommerce_sales_reviews', 'custom_notification_conversions', 'surecart', 'edd', 'tutor', 'learndash', 'learnpress', 'cf7', 'wp_comments', 'njf', 'wpf', 'fluentform', 'elementor_form', 'custom_notification', 'grvf', 'mailchimp', 'convertkit', 'ActiveCampaign', 'brevo', 'zapier_email_subscription', 'give', 'woo_reviews', 'freemius_conversions', 'freemius_reviews', 'zapier_conversions', 'zapier_reviews']),
2245 2280 ]),
2246 2281 'fields' => [
2247 2282 [
2248 2283 'help' => __('Hours', 'notificationx'),
@@ -2283,16 +2318,21 @@
2283 2318 ],
2284 2319 ]),
2285 2320 ],
2286 2321 ],
2322 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2287 2323 'instructions' => apply_filters( 'nx_instructions', [] ),
2324 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2288 2325 'pro_popup' => apply_filters( 'nx_popup_alert', [] ),
2289 2326 ];
2290 2327
2328 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2291 2329 $tabs['tabs'] = apply_filters('nx_metabox_tabs', $tabs['tabs']);
2330 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2292 2331 $tabs = apply_filters('nx_metabox_config', $tabs);
2293 2332
2294 2333 if(defined('NX_DEBUG') && NX_DEBUG){
2334 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2295 2335 do_action( 'qm/stop', __METHOD__ );
2296 2336 }
2297 2337 return $tabs;
2298 2338 }