Skip to content

Instantly share code, notes, and snippets.

@alhoseany
Created April 5, 2019 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alhoseany/4b97279d35c303d8a506d6642b2568c1 to your computer and use it in GitHub Desktop.
Save alhoseany/4b97279d35c303d8a506d6642b2568c1 to your computer and use it in GitHub Desktop.
check debug output in wordpress with a get variable
// 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']));
Copy link

ghost commented Mar 29, 2021

Awesome. Is there a reason for using "dbg_smrand" or is that just a random name?

@alhoseany
Copy link
Author

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