File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
classes/Visualizer/Module Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public function __construct( Visualizer_Plugin $plugin ) {
54
54
parent ::__construct ( $ plugin );
55
55
56
56
$ this ->_addAction ( 'wp_enqueue_scripts ' , 'enqueueScripts ' );
57
+ $ this ->_addFilter ( 'visualizer_get_language ' , 'getLanguage ' );
57
58
$ this ->_addShortcode ( 'visualizer ' , 'renderChart ' );
58
59
59
60
// add do_shortocde hook for widget_text filter
@@ -69,6 +70,14 @@ public function __construct( Visualizer_Plugin $plugin ) {
69
70
add_action ( 'rest_api_init ' , array ( $ this , 'endpoint_register ' ) );
70
71
}
71
72
73
+ /**
74
+ * Returns the language/locale.
75
+ */
76
+ function getLanguage ( $ dummy , $ only_language ) {
77
+ return $ this ->get_language ();
78
+ }
79
+
80
+
72
81
/**
73
82
* Registers the endpoints
74
83
*/
You can’t perform that action at this time.
0 commit comments