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 Site Host

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.

Share it!

See also  How to Get the Size of the Database in PostgreSQL