How to Turn on WordPress Error Reporting

x theme

There is a code snippet to display errors in WordPress while developing a WordPress theme or plugin. Use this code, when you’re doing development. Open your wp-config.php file and search for the following line:

define('WP_DEBUG', false);

Now, comment this line and put the following code under this commented line in wp-config.php.

//define('WP_DEBUG', false);
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

Related posts:

About the author

admin

Leave a Reply

Your email address will not be published. Required fields are marked *