xxxxxxxxxx
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
Save your changes. Your site’s “debug mode” will now be turned on and all errors will be saved to a debug.log log file inside your /wp-content/ directory.
Errors and warnings will also be hidden on the front end of your site. By hiding these errors and warning messages from your visitors, you’ll help ensure they have a seamless experience on your site.
xxxxxxxxxx
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );