How to disable file edition in WordPress admin

Paste the following (or only the needed line) in your wp-config.php file. This file is located at the root of your WordPress install.

define('DISALLOW_FILE_EDIT', true); //Disallow edition of files throught WP editor
define('DISALLOW_FILE_MODS',true); //Disallow install of upgrades

Thanks to Paulund for this useful code snippet!

Leave a Reply

Your email address will not be published. Required fields are marked *