PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.14
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.14
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 | index.php +53 -6 3.10.03.11.14 View file →
@@ -1,14 +1,12 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: Visualizer: Tables and Charts for WordPress
4 4 Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs/
5 - Description: A simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages. The plugin uses Google Visualization API to render charts, which supports cross-browser compatibility (adopting VML for older IE versions) and cross-platform portability to iOS and new Android releases.
6 - Version: 3.10.0
5 + Description: Effortlessly create and embed responsive charts and tables with Visualizer, a powerful WordPress plugin that enhances data presentation from multiple sources.
6 + Version: 3.11.14
7 7 Author: Themeisle
8 8 Author URI: http://themeisle.com
9 - Requires at least: 3.5
10 - Tested up to: 5.6
11 9 License: GPL v2.0 or later
12 10 WordPress Available: yes
13 11 Requires License: no
14 12 Pro Slug: visualizer-pro
@@ -72,9 +70,11 @@
72 70 define( 'VISUALIZER_DIRNAME', basename( VISUALIZER_ABSPATH ) );
73 71 define( 'VISUALIZER_REST_VERSION', 1 );
74 72 // if the below is true, then the js/customization.js in the plugin folder will be used instead of the one in the uploads folder (if it exists).
75 73 // this is also used in Block.php
76 - define( 'VISUALIZER_TEST_JS_CUSTOMIZATION', false );
74 + if ( ! defined( 'VISUALIZER_TEST_JS_CUSTOMIZATION' ) ) {
75 + define( 'VISUALIZER_TEST_JS_CUSTOMIZATION', false );
76 + }
77 77
78 78 if ( ! defined( 'VISUALIZER_CSV_DELIMITER' ) ) {
79 79 define( 'VISUALIZER_CSV_DELIMITER', ',' );
80 80 }
@@ -141,13 +141,60 @@
141 141 'themeisle_sdk_compatibilities/' . VISUALIZER_DIRNAME, function ( $compatibilities ) {
142 142 $compatibilities['VisualizerPRO'] = array(
143 143 'basefile' => defined( 'VISUALIZER_PRO_BASEFILE' ) ? VISUALIZER_PRO_BASEFILE : '',
144 144 'required' => '1.8',
145 - 'tested_up' => '1.13',
145 + 'tested_up' => '1.14',
146 146 );
147 147 return $compatibilities;
148 148 }
149 149 );
150 + add_filter(
151 + 'visualizer_about_us_metadata',
152 + function() {
153 + return array(
154 + 'logo' => esc_url( VISUALIZER_ABSURL . 'images/visualizer-logo.svg' ),
155 + 'location' => 'visualizer',
156 + 'has_upgrade_menu' => ! Visualizer_Module::is_pro(),
157 + 'upgrade_text' => esc_html__( 'Get Visualizer Pro', 'visualizer' ),
158 + 'upgrade_link' => esc_url( tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'sidebarMenuUpgrade', 'index' ) ),
159 + );
160 + }
161 + );
162 +
163 + if ( ! defined( 'TI_CYPRESS_TESTING' ) && 'yes' === get_option( 'visualizer_logger_flag', 'no' ) ) {
164 + add_filter( 'themeisle_sdk_enable_telemetry', '__return_true' );
165 + add_filter(
166 + 'themeisle_sdk_telemetry_products',
167 + function( $products ) {
168 + $already_registered = false;
169 +
170 + $license = get_option( 'visualizer_pro_license_data', 'free' );
171 + if ( ! empty( $license ) && is_object( $license ) ) {
172 + $license = $license->key;
173 + }
174 + $track_hash = 'free' === $license ? 'free' : wp_hash( $license );
175 +
176 + foreach ( $products as &$product ) {
177 + if ( strstr( $product['slug'], 'visualizer' ) !== false ) {
178 + $already_registered = true;
179 + $product['trackHash'] = $track_hash;
180 + }
181 + }
182 +
183 + if ( $already_registered ) {
184 + return $products;
185 + }
186 +
187 + // Add Visualizer to the list of products to track the usage of AI Block.
188 + $products[] = array(
189 + 'slug' => 'visualizer',
190 + 'consent' => 'yes' === get_option( 'visualizer_logger_flag', 'no' ),
191 + 'trackHash' => $track_hash,
192 + );
193 + return $products;
194 + }
195 + );
196 + }
150 197 }
151 198
152 199 /**
153 200 * Registers with the SDK