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)
I tried putting this in both the config file and the header file of my theme, though neither worked. Has anyone done this?
- The topic ‘WP_DEBUG on only for admin user?’ is closed to new replies.