Course Content
Introduction to WordPress Security
WordPress is a platform for easily creating websites and blogs. It is open-source, free, and user-friendly, becoming one of the most popular platforms worldwide. People use WordPress to build personal websites, blogs, online stores, and more. It offers a wide range of plugins and themes that allow users to customize their sites according to their needs.
0/1
Critical Installation and Security Settings
0/1
Automated and Manual Backups
0/1
Security Functions
0/1
Implementation of SSL and HTTPS
0/1
WordPress security
About Lesson

Access the wp-config.php file located in the root directory to disable debugging.

define('WP_DEBUG', false);
define('SCRIPT_DEBUG', false);
error_reporting(0);
@ini_set('display_errors', 0);

Now insert the above code into the file and save it.

Here’s a brief explanation of each:

  1. define('WP_DEBUG', false);

    • When set to true, this activates the Debug mode in WordPress. When activated, errors will be logged in the debug.log file.
  2. define('SCRIPT_DEBUG', false);

    • When set to true, this activates the debug mode for JavaScript and CSS files in an “uncompressed” state. This can ease development and bug fixes in your scripts.
  3. error_reporting(0);

    • This function sets the error level of PHP. By your setting, no errors will be displayed (0).
  4. @ini_set('display_errors', 0);

    • This function attempts to turn off the display of PHP errors in a live environment. The “@” symbol before ini_set prevents the display of errors in case the display events fail.

Note that at the end of the wp-config.php file, make sure there are no additional entries that may change these settings. This is important to ensure that the debugging and error settings are applied according to PHP settings.