PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 2.1.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v2.1.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 | classes/Visualizer/Module/Setup.php +12 -0 2.0.42.1.0 View file →
@@ -43,8 +43,20 @@
43 43 parent::__construct( $plugin );
44 44
45 45 $this->_addAction( 'init', 'setupCustomPostTypes' );
46 46 $this->_addAction( 'plugins_loaded', 'loadTextDomain' );
47 + $this->_addFilter( 'visualizer_logger_flag', 'get_logger_flag', 10, 1 );
48 + }
49 +
50 + /**
51 + * Either the tracking is active or not.
52 + *
53 + * @return bool The flag status.
54 + */
55 + public function get_logger_flag() {
56 + $flag = get_option( 'visualizer_logger_flag', 'no' );
57 +
58 + return ( $flag === 'yes' );
47 59 }
48 60
49 61 /**
50 62 * Registers custom post type for charts.