PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.14
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.14
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
notificationx / includes / ThirdParty / VisualPortfolio.php

VisualPortfolio.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.2.14, at includes/ThirdParty/VisualPortfolio.php

28 lines 754 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace NotificationX\ThirdParty;
3
4 use NotificationX\GetInstance;
5
6 /**
7 * Visual Portfolio, Posts & Image Gallery
8 * Stop showing notification if visual portfolio preview is active.
9 *
10 * https://wordpress.org/plugins/visual-portfolio/
11 */
12 class VisualPortfolio {
13 use GetInstance;
14
15 public function __construct() {
16 add_filter( 'nx_before_enqueue_scripts', array( $this, 'nx_before_enqueue_scripts' ) );
17 }
18
19 public function nx_before_enqueue_scripts($result) {
20 // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reviewed for the NotificationX codebase: acceptable in this context.
21 if(!empty($_GET['vp_preview'])){
22 return ['total' => 0];
23 }
24
25 return $result;
26 }
27 }
28