PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Notification.php +8 -1 3.1.33.4.7 View file →
@@ -225,9 +225,9 @@
225 225
226 226 /**
227 227 * Get last notification details.
228 228 *
229 - * @return array Last notification details.
229 + * @return int Last notification details.
230 230 */
231 231 private static function get_last_active_notification_timestamp() {
232 232 $notification = self::get_notifications_metadata();
233 233
@@ -373,8 +373,12 @@
373 373
374 374 if ( empty( $id ) ) {
375 375 wp_send_json( [] );
376 376 }
377 + $ids = wp_list_pluck( self::$notifications, 'id' );
378 + if ( ! in_array( $id, $ids, true ) ) {
379 + wp_send_json( [] );
380 + }
377 381 self::set_last_active_notification_timestamp();
378 382 update_option( $id, $confirm );
379 383 do_action( $id . '_process_confirm', $confirm );
380 384 wp_send_json( [] );
@@ -429,8 +433,11 @@
429 433 *
430 434 * @return Notification Module instance.
431 435 */
432 436 public function load( $product ) {
437 + if ( apply_filters( 'themeisle_sdk_hide_notifications', false ) ) {
438 + return;
439 + }
433 440 $this->product = $product;
434 441
435 442 $notifications = apply_filters( 'themeisle_sdk_registered_notifications', [] );
436 443 $notifications = array_filter(