Enable Fenced Off Debugging to Your IP in Wordpress Print

  • debug, debug mode
  • 3

Use the code below to activate the bugging in WordPress but locked down to your IP.

Put this in the wp-config.php replacing  define('WP_DEBUG', false);.

This allows you to see debugging but everyone else without debugging.

if($_SERVER['REMOTE_ADDR'] == "999.999.999.999") {
      define('WP_DEBUG', true);
} else {
     define('WP_DEBUG', false);
}







Was this answer helpful?

« Back