File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
classes/Visualizer/Module Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ public function __construct( Visualizer_Plugin $plugin ) {
59
59
$ this ->_addFilter ( 'media_view_strings ' , 'setupMediaViewStrings ' );
60
60
$ this ->_addFilter ( 'plugin_action_links ' , 'getPluginActionLinks ' , 10 , 2 );
61
61
$ this ->_addFilter ( 'plugin_row_meta ' , 'getPluginMetaLinks ' , 10 , 2 );
62
- $ this ->_addFilter ( 'visualizer_logger_flag ' , 'get_logger_flag ' , 10 , 1 );
63
62
$ this ->_addAjaxAction ( Visualizer_Plugin::ACTION_TRACK , 'visualizer_enable_track ' );
64
63
}
65
64
@@ -77,17 +76,6 @@ public function visualizer_enable_track() {
77
76
wp_send_json_success ( array ( 'status ' => $ status ) );
78
77
}
79
78
80
- /**
81
- * Either the tracking is active or not.
82
- *
83
- * @return bool The flag status.
84
- */
85
- public function get_logger_flag () {
86
- $ flag = get_option ( 'visualizer_logger_flag ' , 'no ' );
87
-
88
- return ( $ flag === 'yes ' );
89
- }
90
-
91
79
/**
92
80
* Enqueues media scripts and styles.
93
81
*
Original file line number Diff line number Diff line change @@ -44,6 +44,18 @@ public function __construct( Visualizer_Plugin $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
/**
You can’t perform that action at this time.
0 commit comments