| @@ -43,20 +43,8 @@ | ||
| 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' ); | |
| 59 | 47 | } |
| 60 | 48 | |
| 61 | 49 | /** |
| 62 | 50 | * Registers custom post type for charts. |