How to disable error logging in WordPress

From: Gurkha.Host , Wordpress Last Updated: 1 year ago

Introduction

This article describes how to disable error logging in WordPress. This can be used to prevent your users from seeing any errors on your WordPress sites.

ย 

Procedure

Add these lines to the site'sย wp-config.phpย file:

ini_set('display_errors', 'Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);