fbpx

Disable file editing in WordPress

WordPress has been the most popular CMS (Content Management System) in the world for several years.

This is of course what makes it more vulnerable to would-be hackers.

Below we explain how you can disable file editing from within the WordPress admin panel.

Step 1
Connect via FTP to your site files.

*You can use a program like FileZilla or CyberDuck.

Step 2
Find the file wp-config.php

Step 3
Right click and then click edit

Step 4
Find the line

/* Add any custom values between this line and the "stop editing" line. */

Step 5
Immediately afterwards add

define( 'DISALLOW_FILE_EDIT', true );

Step 6
Save the changes and upload the file to FTP again

Ready
File editing is now disabled in the WordPress admin panel.