-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug-bar-console.php
More file actions
48 lines (42 loc) · 979 Bytes
/
debug-bar-console.php
File metadata and controls
48 lines (42 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Plugin Name: Debug Bar Console
* Plugin URI: http://wordpress.org/extend/plugins/debug-bar-console/
* Description: Adds a PHP/SQL console panel to the Debug Bar plugin. Requires the Debug Bar plugin.
* Author: Drew Jaynes
* Author URI: https://werdswords.com
* Version: 1.0.0
* License: GPLv2
* Requires PHP: 7.4
* Text Domain: debug-bar-console
* Domain Path: /languages/
*/
/**
* Copyright (c) 2024, Drew Jaynes
* Copyright (c) 2011-2024, Daryl Koopersmith
* http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/
use WW\DebugBarConsole\Integration;
/**
* Main plugin class.
*
* @since 1.0.0
*/
class DebugBarConsole
{
const VERSION = '1.0.0';
const FILE = __FILE__;
/**
* Initializes the plugin.
*
* @since 1.0.0
*
* @return void
*/
public function init() : void
{
require_once __DIR__ . '/vendor/autoload.php';
(new Integration())->start();
}
}
add_action('init', fn() => (new DebugBarConsole())->init());