PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.2.85
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.2.85
1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 All 181 releases
← All changes | disco.php +10 -17 1.4.21.2.85 View file →
@@ -8,9 +8,9 @@
8 8 * @wordpress-plugin
9 9 * Plugin Name: Disco
10 10 * Plugin URI: https://webappick.com/
11 11 * Description: Create logical, dynamic and automated discounts for your WooCommerce Store based on product, cart, and cart item information.
12 - * Version: 1.4.2
12 + * Version: 1.2.85
13 13 * Author: WebAppick
14 14 * Author URI: https://webappick.com/
15 15 * License: GPLv3 or later
16 16 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -17,16 +17,16 @@
17 17 * Text Domain: disco
18 18 * Domain Path: /languages
19 19 *
20 20 * WP Requirement & Test
21 - * Requires at least: 5.9
22 - * Tested up to: 7.0.1
23 - * Requires PHP: 7.4
21 + * Requires at least: 4.4
22 + * Tested up to: 6.8.3
23 + * Requires PHP: 5.6
24 24 * Requires Plugins: woocommerce
25 25 *
26 26 * WC Requirement & Test
27 27 * WC requires at least: 3.0
28 - * WC tested up to: 10.9.4
28 + * WC tested up to: 10.3.5
29 29 */
30 30
31 31 // If this file is called directly, abort.
32 32 use Disco\Engine\Initialize;
@@ -35,21 +35,20 @@
35 35 if ( ! defined( 'ABSPATH' ) ) {
36 36 die( 'We\'re sorry, but you can not directly access this file.' );
37 37 }
38 38
39 -const DISCO_VERSION = '1.4.2';
39 +const DISCO_VERSION = '1.2.85';
40 40 const DISCO_TEXTDOMAIN = 'disco';
41 41 const DISCO_NAME = 'Disco';
42 42
43 43 define( 'DISCO_PLUGIN_ROOT', plugin_dir_path( __FILE__ ) );
44 44 define( 'DISCO_PLUGIN_FILE', __FILE__ );
45 -define( 'DISCO_BADGE_IMAGES_DIR', plugins_url( 'backend/views/asset/img', __FILE__ ));
46 45 define( 'DISCO_PRO_PLUGIN_FILE', dirname(__DIR__, 1) . '/disco-pro/disco-pro.php' );
47 46 define( 'DISCO_LIBS_PATH', DISCO_PLUGIN_ROOT . 'libs/' );
48 47
49 48 const DISCO_PLUGIN_ABSOLUTE = __FILE__;
50 -const DISCO_MIN_PHP_VERSION = '7.4';
51 -const DISCO_WP_VERSION = '5.9';
49 +const DISCO_MIN_PHP_VERSION = '5.6';
50 +const DISCO_WP_VERSION = '4.4';
52 51 const DISCO_DB_VERSION = '1.0.0';
53 52
54 53 // WooCommerce has detected that some of your active plugins are incompatible with currently enabled WooCommerce features. Please review the details.
55 54 add_action(
@@ -82,9 +81,9 @@
82 81 static function () {
83 82 echo wp_kses_post(
84 83 sprintf(
85 84 '<div class="notice notice-error"><p>%s</p></div>',
86 - __( 'Disco requires PHP 7.4 or newer.', 'disco' )// @phpstan-ignore-line
85 + __( 'Disco requires PHP 5.6 or newer.', 'disco' )// @phpstan-ignore-line
87 86 )
88 87 );
89 88 }
90 89 );
@@ -94,13 +93,9 @@
94 93 }
95 94
96 95 $disco_libraries = require DISCO_PLUGIN_ROOT . 'vendor/autoload.php'; //phpcs:ignore
97 96
98 -// Must run before plugins_loaded so the buffer captures stray notices from any plugin.
99 -\Disco\Engine\OutputBuffer::start();
100 -
101 97 add_action('woocommerce_init', function () {
102 - require_once DISCO_PLUGIN_ROOT . 'libs/LiveChat/LiveChat.php';
103 98 require_once DISCO_PLUGIN_ROOT . 'functions/common.php';
104 99 require_once DISCO_PLUGIN_ROOT . 'functions/cart.php';
105 100 require_once DISCO_PLUGIN_ROOT . 'functions/product.php';
106 101 require_once DISCO_PLUGIN_ROOT . 'functions/order.php';
@@ -106,9 +101,8 @@
106 101 require_once DISCO_PLUGIN_ROOT . 'functions/order.php';
107 102 require_once DISCO_PLUGIN_ROOT . 'functions/shipping.php';
108 103 require_once DISCO_PLUGIN_ROOT . 'functions/bogo.php';
109 104 require_once DISCO_PLUGIN_ROOT . 'functions/coupon.php';
110 - require_once DISCO_PLUGIN_ROOT . 'functions/compatibility.php';
111 105 });
112 106
113 107
114 108 $requirements = new Requirements(
@@ -155,9 +149,8 @@
155 149 }
156 150 );
157 151
158 152 require_once __DIR__ . '/libs/WebAppick/Classes/DiscoWebAppickAPI.php';
159 - require_once __DIR__ . '/libs/ActiveCampaign/ActiveCampaign.php';
160 153
161 154 add_action(
162 155 'init', function() {
163 156 DiscoWebAppickAPI::getInstance();
@@ -166,9 +159,9 @@
166 159
167 160 }
168 161
169 162 //Add custom link to plugin row meta
170 -//add_filter('plugin_row_meta', function ( $links, $file ) {
163 +//add_filter('plugin_row_meta', function ( $links, $file ) { // @phpstan-ignore-line
171 164 // if ($file == plugin_basename(__FILE__)) {
172 165 // $links[] = '<a href="https://discoplugin.com/pricing/?utm_source=update&utm_medium=wp_free&utm_campaign=release-update" target="_blank" class="disco-custom-meta-link"><span >🎃 Halloween Special – 30% OFF</span></a>';
173 166 // }
174 167 // return $links;