-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebugHelperForWordPress.php
More file actions
44 lines (37 loc) · 1.13 KB
/
debugHelperForWordPress.php
File metadata and controls
44 lines (37 loc) · 1.13 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
<?php
/*
Plugin Name: Debug Helper For WordPress
Version: 1.0.0
Description: Debug Helper For WordPress provides essential debugging tools for developers.
Requires PHP: 8.0
Requires at least: 5.6
Author: Jithin PV
Author URI: https://github.com/jpeevi
*/
require_once 'src/DebugHelperForWordPress.php';
if (defined('WP_DEBUG') && WP_DEBUG === true) {
if (!function_exists('dump')) {
/**
* @param mixed $variable
* @param bool $dumpType
* @param bool $prettyPrint
* @return void
*/
function dump(mixed $variable, bool $dumpType = false, bool $prettyPrint = false): void
{
DebugHelperForWordPress::dump($variable, $dumpType, $prettyPrint);
}
}
if (!function_exists('dumpAndDie')) {
/**
* @param mixed $variable
* @param bool $dumpType
* @param bool $prettyPrint
* @return void
*/
function dumpAndDie(mixed $variable, bool $dumpType = false, bool $prettyPrint = false): void
{
DebugHelperForWordPress::dumpAndDie($variable, $dumpType, $prettyPrint);
}
}
}