PluginProbe
Notivo Notification for WooCommerce | Boost Your Sales – Recent Sales Popup – Live Feed Sales – Upsells / trunk
Notivo Notification for WooCommerce | Boost Your Sales – Recent Sales Popup – Live Feed Sales – Upsells vtrunk
trunk 1.2.3.6 1.2.3.7
woo-notification / woo-notification.php

woo-notification.php in Notivo Notification for WooCommerce | Boost Your Sales – Recent Sales Popup – Live Feed Sales – Upsells trunk, at woo-notification.php

88 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Notivo Notification for WooCommerce
4 * Plugin URI: https://villatheme.com/extensions/woocommerce-notification-boost-sales/
5 * Description: Display recent orders as popup notifications, boosting conversion rates by showing real-time purchase, creating urgency, and showcasing new products.
6 * Version: 1.4.2
7 * Author: Andy Ha (villatheme.com)
8 * Author URI: https://villatheme.com
9 * License: GPLv2
10 * License URI: https://www.gnu.org/licenses/gpl-2.0
11 * Text Domain: woo-notification
12 * Copyright 2016-2026 VillaTheme.com. All rights reserved.
13 * Requires Plugins: woocommerce
14 * Requires at least: 5.0
15 * Requires PHP: 7.4
16 * Tested up to: 7.1
17 * WC requires at least: 7.0
18 * WC tested up to: 11.0
19 */
20
21 if (!defined('ABSPATH')) {
22 exit;
23 }
24
25 define('VI_WNOTIFICATION_F_VERSION', '1.4.2');
26
27 /**
28 * Class VI_WNOTIFICATION_F
29 */
30 class VI_WNOTIFICATION_F {
31
32
33 public function __construct() {
34 add_action('plugins_loaded', array($this, 'init'));
35 add_action('before_woocommerce_init', [$this, 'custom_order_tables_declare_compatibility']);
36 }
37
38 /**
39 *
40 */
41 function init() {
42 $include_dir = plugin_dir_path(__FILE__) . 'includes/';
43
44 include_once(ABSPATH . 'wp-admin/includes/plugin.php');
45
46 if (is_plugin_active('woocommerce-notification/woocommerce-notification.php')) {
47 return;
48 }
49
50 if ( is_plugin_active('notivo-notification/notivo-notification.php') ) {
51 return;
52 }
53
54 if (!class_exists('VillaTheme_Require_Environment')) {
55 include_once $include_dir . 'support.php';
56 }
57
58 $environment = new \VillaTheme_Require_Environment([
59 'plugin_name' => 'Notivo Notification for WooCommerce',
60 'php_version' => '7.4',
61 'wp_version' => '5.0',
62 'wc_version' => '7.0',
63 'require_plugins' => [
64 [
65 'slug' => 'woocommerce',
66 'name' => 'WooCommerce',
67 'defined_version' => 'WC_VERSION',
68 'version' => '7.0',
69 ]
70 ],
71 ]);
72
73 if ($environment->has_error()) {
74 return;
75 }
76
77 require_once $include_dir . "define.php";
78 }
79
80 public function custom_order_tables_declare_compatibility() {
81 if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
82 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
83 }
84 }
85
86 }
87
88 new VI_WNOTIFICATION_F();