Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Forked from avantegarde/wp-hide-errors.php
Created May 25, 2017 13:52
Show Gist options
  • Save mrfoxtalbot/4b770d45ea3a8d03e3738391445a9686 to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/4b770d45ea3a8d03e3738391445a9686 to your computer and use it in GitHub Desktop.
hide errors
<?php
/**
* For developers: WordPress debugging mode.
*
* If the default WP_DEBUG function is set to false and
* there are still warnings or errors showing up, try
* using the following instead
*/
ini_set('log_errors','On');
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment