In this tutorial we are going to learn about the debugging errors in wordpress by using the inbuilt functions in wordpress core.

For using wordpress owned we need to access the wp-config.php file.

wp-debug

Making WP debug true will display PHP errors and debug errors


define( 'WP_DEBUG',         true );
define( 'WP_DEBUG_LOG',     true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG',     true );
define( 'SAVEQUERIES',      true );
define( 'WP_DEBUG_LOG', true );
-or-
define( 'WP_DEBUG_LOG', '/tmp/wp-errors.log' );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );

You may also like...

Leave a Reply

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