wordpress debug config
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define( 'WP_DEBUG', true );
: This line enables the WordPress debug mode, allowing errors and warnings to be displayed.define( 'WP_DEBUG_LOG', true );
: This setting instructs WordPress to log errors and warnings to a debug log file.define( 'WP_DEBUG_DISPLAY', false );
: It prevents PHP errors and warnings from being displayed on the website.@ini_set( 'display_errors', 0 );
: This line further ensures that PHP errors are not displayed on the site.
These configurations collectively enable debugging in WordPress, logging errors to a file for review without displaying them to site visitors.