Know what’s going on with debug() function
Copy this code and paste it in your HTML
To make things even easier, I put this inside one function in my functions.php so it helps me a lot:
1 <?php
2 function debug($var) {
4 echo "<pre>";
6 echo "</pre>";
7 } else {
8 echo "DEBUG: ".$var;
9 }
10 }
11 ?>
Report this snippet
Comments
Subscribe to comments