Skip to content

Instantly share code, notes, and snippets.

View ruman's full-sized avatar
:octocat:

Mohammad Mahbubur Rahman ruman

:octocat:
View GitHub Profile
@james2doyle
james2doyle / dd.php
Last active June 29, 2024 00:58
A implementation of "dump and die" (dd) for WordPress
<?php
if (!function_exists('dd')) {
function dd($data)
{
ini_set("highlight.comment", "#969896; font-style: italic");
ini_set("highlight.default", "#FFFFFF");
ini_set("highlight.html", "#D16568");
ini_set("highlight.keyword", "#7FA3BC; font-weight: bold");
ini_set("highlight.string", "#F2C47E");