Home  »  CodeSnippets   »   WordPress Disable Display of Errors and Warnings in PHP

WordPress Disable Display of Errors and Warnings in PHP

Posted: February 7, 2022 | by Michael Bright

Use this in your wp-config.php file:

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

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.