WP_DEBUG on only for admin user?
-
Hi there,
How would I set WP_DEBUG to true, only for the admin user? I tried checking for the user ID 1, via:
if(function_exists(“wp_get_current_user”) && wp_get_current_user()->ID == 1)
define(‘WP_DEBUG’, true);
else
define(‘WP_DEBUG’, false);I tried putting this in both the config file and the header file of my theme, though neither worked. Has anyone done this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WP_DEBUG on only for admin user?’ is closed to new replies.