Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)

I’m developing a site on a server that the client has access to as well and what I’d like to do is show WP_DEBUG only for administrators. Referencing Yoast’s article on a way around this: if ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘true’) define(‘WP_DEBUG’, true); would show WP_DEBUG only for URLs that have ?debug=true attached to … Read more