PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.0
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 +20 -2 3.3.43.4.0 View file →
@@ -1,11 +1,11 @@
1 1 <?php
2 2
3 3 /*
4 - Plugin Name: Visualizer: Tables and Charts Manager for WordPress
4 + Plugin Name: Visualizer: Tables and Charts for WordPress
5 5 Plugin URI: https://themeisle.com/plugins/visualizer-charts-and-graphs-lite/
6 6 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.
7 - Version: 3.3.4
7 + Version: 3.4.0
8 8 Author: Themeisle
9 9 Author URI: http://themeisle.com
10 10 License: GPL v2.0 or later
11 11 WordPress Available: yes
@@ -69,8 +69,9 @@
69 69 define( 'VISUALIZER_ABSURL', plugins_url( '/', __FILE__ ) );
70 70 define( 'VISUALIZER_ABSPATH', dirname( __FILE__ ) );
71 71 define( 'VISUALIZER_REST_VERSION', 1 );
72 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).
73 + // this is also used in Block.php
73 74 define( 'VISUALIZER_TEST_JS_CUSTOMIZATION', false );
74 75
75 76 if ( ! defined( 'VISUALIZER_CSV_DELIMITER' ) ) {
76 77 define( 'VISUALIZER_CSV_DELIMITER', ',' );
@@ -90,8 +91,11 @@
90 91 // the link to pre-build queries.
91 92 define( 'VISUALIZER_DB_QUERY_DOC_URL', 'https://docs.themeisle.com/article/970-visualizer-sample-queries-to-generate-charts' );
92 93 define( 'VISUALIZER_MAIN_DOC', 'https://docs.themeisle.com/category/657-visualizer' );
93 94
95 + // to redirect all themeisle_log_event to error log.
96 + define( 'VISUALIZER_LOCAL_DEBUG', false );
97 +
94 98 // instantiate the plugin
95 99 $plugin = Visualizer_Plugin::instance();
96 100
97 101 // instantiate Gutenberg block
@@ -152,4 +156,18 @@
152 156 // register autoloader function
153 157 spl_autoload_register( 'visualizer_autoloader' );
154 158 // launch the plugin
155 159 visualizer_launch();
160 +
161 +
162 +if ( VISUALIZER_LOCAL_DEBUG ) {
163 + add_action( 'themeisle_log_event', 'visualizer_themeisle_log_event', 10, 5 );
164 +
165 + /**
166 + * Redirect themeisle_log_event to error log.
167 + */
168 + function visualizer_themeisle_log_event( $name, $msg, $type, $file, $line ) {
169 + if ( $name === Visualizer_Plugin::NAME ) {
170 + error_log( sprintf( '%s (%s:%d): %s', $type, $file, $line, $msg ) );
171 + }
172 + }
173 +}