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/Admin/Entries.php +6 -0 3.2.11trunk View file →
@@ -101,11 +101,13 @@
101 101 }
102 102 if(empty($entry['updated_at'])){
103 103 $entry['updated_at'] = Helper::mysql_time($timestamp);
104 104 }
105 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
105 106 $entry = apply_filters('nx_insert_entry', $entry);
106 107 $result = Database::get_instance()->insert_post(Database::$table_entries, $entry, $this->format);
107 108 if ( $result ) {
109 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
108 110 do_action( 'nx_after_entry_inserted', $entry );
109 111 }
110 112 return $result;
111 113 }
@@ -123,8 +125,9 @@
123 125 }
124 126 if(empty($entry['updated_at'])){
125 127 $entry['updated_at'] = Helper::mysql_time($timestamp);
126 128 }
129 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
127 130 $entries[$key] = apply_filters('nx_insert_entry', $entry);
128 131 }
129 132 return Database::get_instance()->insert_posts(Database::$table_entries, $entries, $this->format);
130 133 }
@@ -134,8 +137,9 @@
134 137 $where__or_nx_id = ['nx_id' => $where__or_nx_id];
135 138 }
136 139 $entries = Database::get_instance()->get_posts(Database::$table_entries, $select, $where__or_nx_id, $join_table, $group_by_col, '', 'ORDER BY `created_at` DESC');
137 140 if ($data_in_entry) {
141 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
138 142 $entries = apply_filters('nx_get_entries', $entries);
139 143 return $entries;
140 144 }
141 145 foreach ($entries as $key => $value) {
@@ -142,10 +146,12 @@
142 146 if (!empty($value['data'])) {
143 147 $value = array_merge($value['data'], $value);
144 148 unset($value['data']);
145 149 }
150 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
146 151 $entries[$key] = apply_filters('nx_get_entry', $value);
147 152 }
153 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context.
148 154 $entries = apply_filters('nx_get_entries', $entries);
149 155 return $entries;
150 156 }
151 157