Created
February 15, 2022 14:32
-
-
Save ravinderk/d31da00a9266cfbf32665c36997875d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$GLOBALS['wp_filter'] = array( | |
'enable_wp_debug_mode_checks' => array( | |
10 => array( | |
array( | |
'accepted_args' => 0, | |
'function' => function () { | |
return false; | |
}, | |
), | |
), | |
), | |
); | |
error_reporting(E_ALL & ~E_DEPRECATED ); | |
ini_set('display_errors', 0); | |
ini_set('log_errors', 1); | |
ini_set('error_log', __DIR__ . '/wp-content/debug.log'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code will disable notices like
PHP Deprecated: ********
.Add this code before /* That's all, stop editing! Happy publishing. */ comment.