-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug-bar-console.php
More file actions
52 lines (44 loc) · 1.09 KB
/
debug-bar-console.php
File metadata and controls
52 lines (44 loc) · 1.09 KB
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
49
50
51
52
<?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) 2026, Drew Jaynes
* Copyright (c) 2011-2024, Daryl Koopersmith
* http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/
use DebugBarConsole\Integration;
// Bail if accessed directly
if (! defined('ABSPATH')) {
exit;
}
/**
* Main plugin class.
*
* @since 1.0.0
*/
class DebugBarConsole
{
public const VERSION = '1.0.0';
public const FILE = __FILE__;
/**
* Initializes the plugin.
*
* @since 1.0.0
*/
public function init(): void
{
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__.'/compat.php';
(new Integration)->start();
}
}
add_action('init', fn () => (new DebugBarConsole)->init());