I have been adding at the top of my wp-config.php the following to switch off php logger but won't take any effect on it. Is there something else what I should do?
error_reporting(0);
@ini_set(‘display_errors’, 0);
Also in wp-config.php
, set the WP_DEBUG_DISPLAY
constant to FALSE
.
Snippet from wp-includes/default-constants.php
:
// Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
// display_errors and not force errors to be displayed. Use false to force display_errors off.
if ( !defined('WP_DEBUG_DISPLAY') )
define( 'WP_DEBUG_DISPLAY', true );
'
instead...