PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / trunk
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar vtrunk
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 1.2.0 1.2.1 All 156 releases
← All changes | includes/Extensions/GlobalFields.php +72 -15 3.2.9trunk 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"]),
@@ -965,15 +991,34 @@
965 991 Rules::is('notification-template.first_param', 'tag_sales_count', true),
966 992 Rules::includes('source', [ 'woocommerce', 'edd', 'woocommerce_sales' ]),
967 993 ]),
968 994 ],
995 + 'combine_multiorder_display' => [
996 + 'label' => __('Combine Display', 'notificationx'),
997 + 'name' => 'combine_multiorder_display',
998 + 'type' => 'select',
999 + 'priority' => 99.71,
1000 + 'default' => 'count',
1001 + 'description' => __('Show the number of other products, or list their names.', 'notificationx'),
1002 + 'options' => $this->normalize_fields([
1003 + 'count' => __('Show count (e.g. & 2 more products)', 'notificationx'),
1004 + 'list' => __('List product names (e.g. & Product B & Product C)', 'notificationx'),
1005 + ]),
1006 + 'rules' => Rules::logicalRule([
1007 + Rules::is('notification-template.first_param', 'tag_sales_count', true),
1008 + Rules::includes('source', [ 'woocommerce', 'edd', 'woocommerce_sales' ]),
1009 + Rules::is('combine_multiorder', true),
1010 + ]),
1011 + ],
969 1012 ],
970 1013 ]),
1014 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
971 1015 'gdpr_content' => apply_filters('nx_content_gdpr', [
972 1016 'label' => __("Cookies Content", 'notificationx'),
973 1017 'name' => "content",
974 1018 'type' => "section",
975 1019 'priority' => 95,
1020 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
976 1021 'fields' => apply_filters('nx_content_fields_gdpr', []),
977 1022 'rules' => Rules::is('type', 'gdpr' ),
978 1023 ]),
979 1024 'link_options' => [
@@ -986,8 +1031,9 @@
986 1031 'label' => __("Link Type", 'notificationx'),
987 1032 'name' => "link_type",
988 1033 'type' => "select",
989 1034 'default' => 'none',
1035 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
990 1036 'options' => apply_filters('nx_link_types', $this->normalize_fields([
991 1037 'none' => __('None', 'notificationx'),
992 1038 ])),
993 1039 ],
@@ -1013,8 +1059,9 @@
1013 1059 ],
1014 1060 ],
1015 1061 // must be called after nx_link_types filter.
1016 1062 'rules' => Rules::logicalRule([
1063 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1017 1064 [ 'includes', 'source', apply_filters('nx_link_types_dependency', []) ],
1018 1065 Rules::is( 'type', 'gdpr', true ),
1019 1066 ]),
1020 1067 ],
@@ -1029,8 +1076,9 @@
1029 1076 'type' => 'tabs',
1030 1077 'name' => 'manager'
1031 1078 ],
1032 1079 'classes' => "manager_tab",
1080 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1033 1081 'fields' => apply_filters('nx_manager_fields', [
1034 1082 "main_preview" => [
1035 1083 'label' => __("Preview", 'notificationx'),
1036 1084 'name' => "main_preview",
@@ -1058,9 +1106,9 @@
1058 1106 'label' => __("Force Reload", 'notificationx'),
1059 1107 'name' => "gdpr_force_reload",
1060 1108 'type' => "better-toggle",
1061 1109 'default' => false,
1062 - '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' => ''],
1063 1111 'rules' => Rules::logicalRule([
1064 1112 Rules::is( 'type', 'gdpr' ),
1065 1113 ]),
1066 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'),
@@ -1069,9 +1117,9 @@
1069 1117 'label' => __("Cookie Removal", 'notificationx'),
1070 1118 'name' => "gdpr_cookie_removal",
1071 1119 'type' => "better-toggle",
1072 1120 'default' => false,
1073 - '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' => ''],
1074 1122 'rules' => Rules::logicalRule([
1075 1123 Rules::is( 'type', 'gdpr' ),
1076 1124 ]),
1077 1125 'info' => __('When cookies are not accepted, non-essential cookies are removed, ensuring compliance with GDPR requirements.', 'notificationx'),
@@ -1151,9 +1199,9 @@
1151 1199 'show_body' => true,
1152 1200 'close_on_body' => true,
1153 1201 'button' => [
1154 1202 'name' => 'tab_info_edit',
1155 - 'text' => __(' ', 'notificationx'),
1203 + 'text' => ' ',
1156 1204 'icon' => [
1157 1205 'type' => 'tabs',
1158 1206 'name' => 'edit_modal'
1159 1207 ],
@@ -1174,9 +1222,9 @@
1174 1222 ],
1175 1223 ],
1176 1224 ],
1177 1225 'necessary_cookie_lists' => [
1178 - 'label' => __('', 'notificationx'),
1226 + 'label' => '',
1179 1227 'name' => 'necessary_cookie_lists',
1180 1228 'type' => 'better-repeater',
1181 1229 'priority' => 10,
1182 1230 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1206,9 +1254,9 @@
1206 1254 'show_body' => true,
1207 1255 'close_on_body' => true,
1208 1256 'button' => [
1209 1257 'name' => 'tab_info_edit',
1210 - 'text' => __(' ', 'notificationx'),
1258 + 'text' => ' ',
1211 1259 'icon' => [
1212 1260 'type' => 'tabs',
1213 1261 'name' => 'edit_modal'
1214 1262 ],
@@ -1229,9 +1277,9 @@
1229 1277 ],
1230 1278 ],
1231 1279 ],
1232 1280 'functional_cookie_lists' => [
1233 - 'label' => __('', 'notificationx'),
1281 + 'label' => '',
1234 1282 'name' => 'functional_cookie_lists',
1235 1283 'type' => 'better-repeater',
1236 1284 'priority' => 10,
1237 1285 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1260,9 +1308,9 @@
1260 1308 'show_body' => true,
1261 1309 'close_on_body' => true,
1262 1310 'button' => [
1263 1311 'name' => 'tab_info_edit',
1264 - 'text' => __(' ', 'notificationx'),
1312 + 'text' => ' ',
1265 1313 'icon' => [
1266 1314 'type' => 'tabs',
1267 1315 'name' => 'edit_modal'
1268 1316 ],
@@ -1283,9 +1331,9 @@
1283 1331 ],
1284 1332 ],
1285 1333 ],
1286 1334 'analytics_cookie_lists' => [
1287 - 'label' => __('', 'notificationx'),
1335 + 'label' => '',
1288 1336 'name' => 'analytics_cookie_lists',
1289 1337 'type' => 'better-repeater',
1290 1338 'priority' => 10,
1291 1339 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1314,9 +1362,9 @@
1314 1362 'show_body' => true,
1315 1363 'close_on_body' => true,
1316 1364 'button' => [
1317 1365 'name' => 'tab_info_edit',
1318 - 'text' => __(' ', 'notificationx'),
1366 + 'text' => ' ',
1319 1367 'icon' => [
1320 1368 'type' => 'tabs',
1321 1369 'name' => 'edit_modal'
1322 1370 ],
@@ -1337,9 +1385,9 @@
1337 1385 ],
1338 1386 ],
1339 1387 ],
1340 1388 'performance_cookie_lists' => [
1341 - 'label' => __('', 'notificationx'),
1389 + 'label' => '',
1342 1390 'name' => 'performance_cookie_lists',
1343 1391 'type' => 'better-repeater',
1344 1392 'priority' => 10,
1345 1393 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1368,9 +1416,9 @@
1368 1416 'show_body' => true,
1369 1417 'close_on_body' => true,
1370 1418 'button' => [
1371 1419 'name' => 'tab_info_edit',
1372 - 'text' => __(' ', 'notificationx'),
1420 + 'text' => ' ',
1373 1421 'icon' => [
1374 1422 'type' => 'tabs',
1375 1423 'name' => 'edit_modal'
1376 1424 ],
@@ -1391,9 +1439,9 @@
1391 1439 ],
1392 1440 ],
1393 1441 ],
1394 1442 'advertising_cookie_lists' => [
1395 - 'label' => __('', 'notificationx'),
1443 + 'label' => '',
1396 1444 'name' => 'advertising_cookie_lists',
1397 1445 'type' => 'better-repeater',
1398 1446 'priority' => 10,
1399 1447 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1422,9 +1470,9 @@
1422 1470 'show_body' => true,
1423 1471 'close_on_body' => true,
1424 1472 'button' => [
1425 1473 'name' => 'tab_info_edit',
1426 - 'text' => __(' ', 'notificationx'),
1474 + 'text' => ' ',
1427 1475 'icon' => [
1428 1476 'type' => 'tabs',
1429 1477 'name' => 'edit_modal'
1430 1478 ],
@@ -1445,9 +1493,9 @@
1445 1493 ],
1446 1494 ],
1447 1495 ],
1448 1496 'uncategorized_cookie_lists' => [
1449 - 'label' => __('', 'notificationx'),
1497 + 'label' => '',
1450 1498 'name' => 'uncategorized_cookie_lists',
1451 1499 'type' => 'better-repeater',
1452 1500 'priority' => 10,
1453 1501 'placeholder_img'=> NOTIFICATIONX_ADMIN_URL . 'images/extensions/empty-cookie.png',
@@ -1475,8 +1523,9 @@
1475 1523 'type' => 'tabs',
1476 1524 'name' => 'display'
1477 1525 ],
1478 1526 'classes' => "display_tab",
1527 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1479 1528 'fields' => apply_filters('nx_display_fields', [
1480 1529 "main_preview" => [
1481 1530 'label' => __("Preview", 'notificationx'),
1482 1531 'name' => "main_preview",
@@ -1589,8 +1638,9 @@
1589 1638 "youtube",
1590 1639 "woocommerce_sales",
1591 1640 'woocommerce_sales_reviews',
1592 1641 ] ),
1642 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1593 1643 'options' => apply_filters('nx_show_image_options', array(
1594 1644 'none' => [
1595 1645 'value' => 'none',
1596 1646 'label' => __('None', 'notificationx'),
@@ -1677,8 +1727,9 @@
1677 1727 'name' => "show_on",
1678 1728 'type' => "select",
1679 1729 'default' => "everywhere",
1680 1730 'priority' => 5,
1731 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1681 1732 'options' => apply_filters('nx_show_on_options', $this->normalize_fields([
1682 1733 'everywhere' => __('Show Everywhere', 'notificationx'),
1683 1734 'on_selected' => __('Show On Selected', 'notificationx'),
1684 1735 'hide_on_selected' => __('Hide On Selected', 'notificationx'),
@@ -1722,8 +1773,9 @@
1722 1773 'type' => 'tabs',
1723 1774 'name' => 'customize'
1724 1775 ],
1725 1776 'classes' => "customize_tab",
1777 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
1726 1778 'fields' => apply_filters('nx_customize_fields', [
1727 1779 "main_preview" => [
1728 1780 'label' => __("Preview", 'notificationx'),
1729 1781 'name' => "main_preview",
@@ -2223,9 +2275,9 @@
2223 2275 'hour_minutes_section' => [
2224 2276 'name' => "hour_minutes_section",
2225 2277 'type' => "section",
2226 2278 'rules' => Rules::logicalRule([
2227 - 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']),
2228 2280 ]),
2229 2281 'fields' => [
2230 2282 [
2231 2283 'help' => __('Hours', 'notificationx'),
@@ -2266,16 +2318,21 @@
2266 2318 ],
2267 2319 ]),
2268 2320 ],
2269 2321 ],
2322 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2270 2323 'instructions' => apply_filters( 'nx_instructions', [] ),
2324 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2271 2325 'pro_popup' => apply_filters( 'nx_popup_alert', [] ),
2272 2326 ];
2273 2327
2328 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2274 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.
2275 2331 $tabs = apply_filters('nx_metabox_config', $tabs);
2276 2332
2277 2333 if(defined('NX_DEBUG') && NX_DEBUG){
2334 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
2278 2335 do_action( 'qm/stop', __METHOD__ );
2279 2336 }
2280 2337 return $tabs;
2281 2338 }