Enable Fenced Off Debugging to Your IP in Wordpress

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);
}






  • debug, debug mode
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

customised wordpress wp-config file

Out of the box, the WordPress wp-config.php file is basic and ugly.Below is our standard...

Fix WordPress 404 Errors on Password Protected Directories

You are reading this article becasue you have applied password protection on the wp-admin...

How to protect your Wordpress Login from Bots

You are reading this article because you are getting a lot of attacks on your WordPress login...

SVG Logo is not appearing in Wordpress

You are reading this article because you have managed to upload an SVG file to your Wordpress...

Import piped separated formatted data from wordpress to google sheets

You are reading this article because you have a list of posts in wordpress and you want to grab...