Created
April 5, 2019 17:04
-
-
Save alhoseany/4b97279d35c303d8a506d6642b2568c1 to your computer and use it in GitHub Desktop.
check debug output in wordpress with a get variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// brought to you by Liam Bailey | |
// That way if I want to see the output I just add ?dbg_smrand to the url and presto | |
define('wp_debug', true); | |
define('wp_debug_log', true); | |
define('wp_debug_display, isset($_GET['dbg_smrand'])); |
Just a random name. You can use anything but remember to change it in the code.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome. Is there a reason for using "dbg_smrand" or is that just a random name?