File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 3
3
* Plugin Name: DustPress Debugger
4
4
* Plugin URI: https://github.com/devgeniem/dustpress-debugger
5
5
* Description: Provides handy ajaxified debugger tool for DustPress based themes.
6
- * Version: 1.3.4
6
+ * Version: 1.4.0
7
7
* Author: Geniem Oy / Miika Arponen & Ville Siltala
8
8
* Author URI: http://www.geniem.com
9
9
*/
10
10
11
11
namespace DustPress ;
12
12
13
- use add_action ;
14
- use add_filter ;
15
- use admin_url ;
16
- use current_user_can ;
17
- use is_user_logged_in ;
18
- use plugin_dir_url ;
19
- use wp_localize_script ;
20
- use wp_enqueue_script ;
21
- use wp_enqueue_style ;
22
- use wp_register_script ;
23
- use wp_send_json_success ;
24
-
25
13
/**
26
14
* DustPressDebugger
27
15
*/
@@ -231,6 +219,10 @@ public static function models( $models ) {
231
219
232
220
self ::$ data ['Debugs ' ]['Submodels ' ] = $ models ;
233
221
}
222
+
223
+ public static function get_data ( $ key ) {
224
+ return self ::$ data [ $ key ] ?? null ;
225
+ }
234
226
}
235
227
236
228
add_action ( 'init ' , __NAMESPACE__ . '\\Debugger::init ' );
You can’t perform that action at this time.
0 commit comments