PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.9
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.9
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 | classes/Visualizer/Plugin.php +7 -15 4.0.63.4.9 View file →
@@ -27,15 +27,14 @@
27 27 */
28 28 class Visualizer_Plugin {
29 29
30 30 const NAME = 'visualizer';
31 - const VERSION = '4.0.6';
31 + const VERSION = '3.4.9';
32 32
33 33 // custom post types
34 34 const CPT_VISUALIZER = 'visualizer';
35 35
36 36 // custom meta fields
37 - const CF_CHART_IMAGE = 'visualizer-chart-image';
38 37 const CF_CHART_TYPE = 'visualizer-chart-type';
39 38 const CF_SOURCE = 'visualizer-source';
40 39 const CF_SERIES = 'visualizer-series';
41 40 const CF_DEFAULT_DATA = 'visualizer-default-data';
@@ -56,10 +55,8 @@
56 55 const ACTION_DELETE_CHART = 'visualizer-delete-chart';
57 56 const ACTION_UPLOAD_DATA = 'visualizer-upload-data';
58 57 const ACTION_EXPORT_DATA = 'visualizer-export-data';
59 58
60 - const STORE_URL = 'https://store.themeisle.com/';
61 -
62 59 /**
63 60 *Action used for fetching specific users/roles for permissions.
64 61 */
65 62 const ACTION_FETCH_PERMISSIONS_DATA = 'visualizer-fetch-permissions-data';
@@ -90,10 +87,8 @@
90 87 const FILTER_GET_CHART_SETTINGS = 'visualizer-get-chart-settings';
91 88 const FILTER_UNDO_REVISIONS = 'visualizer-undo-revisions';
92 89 const FILTER_HANDLE_REVISIONS = 'visualizer-handle-revisions';
93 90 const FILTER_GET_CHART_DATA_AS = 'visualizer-get-chart-data-as';
94 - const FILTER_HANDLE_CACHE_EXPIRATION_TIME = 'visualizer-handle-expiration-time';
95 - const FILTER_CHART_TITLE = 'the_title';
96 91
97 92 const CF_DB_SCHEDULE = 'visualizer-db-schedule';
98 93 const CF_DB_QUERY = 'visualizer-db-query';
99 94
@@ -99,15 +94,11 @@
99 94
100 95 const CF_CHART_URL = 'visualizer-chart-url';
101 96 const CF_CHART_SCHEDULE = 'visualizer-chart-schedule';
102 97 // Added by Ash/Upwork
103 - const PRO_TEASER_URL = 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/';
98 + const PRO_TEASER_URL = 'https://themeisle.com/plugins/visualizer-charts-and-graphs/upgrade/#pricing';
104 99 const PRO_TEASER_TITLE = 'Check PRO version ';
105 100
106 - const CF_CHART_CACHE = 'visualizer-chart-cache';
107 - const CF_JSON_WOOCOMMERCE_SOURCE = 'visualizer-woocommerce-source';
108 - const CF_IS_WOOCOMMERCE_SOURCE = 'visualizer-is-woocommerce-source';
109 -
110 101 /**
111 102 * Name of the option for WordPress DB.
112 103 */
113 104 const WP_DB_NAME = 'WordPress DB';
@@ -221,12 +212,12 @@
221 212 * @since 1.0.0
222 213 *
223 214 * @access public
224 215 *
225 - * @param string $class_name The name of the module to use in the plugin.
216 + * @param string $class The name of the module to use in the plugin.
226 217 */
227 - public function setModule( $class_name ) {
228 - $this->_modules[ $class_name ] = new $class_name( $this );
218 + public function setModule( $class ) {
219 + $this->_modules[ $class ] = new $class( $this );
229 220 }
230 221
231 222 /**
232 223 * Private clone method.
@@ -240,11 +231,12 @@
240 231
241 232 /**
242 233 * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log.
243 234 */
244 - final public function themeisle_log_event_debug( $name, $message, $type, $file, $line ) {
235 + final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) {
245 236 if ( Visualizer_Plugin::NAME !== $name ) {
246 237 return;
247 238 }
248 239 error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) );
249 240 }
241 +
250 242 }