Skip to main content
All CollectionsWordPress
Disable WordPress File Editor
Disable WordPress File Editor

How to disable the built-in WordPress File Editor (without a plugin) and increase security of your website.

Karl avatar
Written by Karl
Updated over 3 years ago

How to disable the built-in WordPress File Editor and increase security of your website.


The first thing you need to do is to set up file access for your website. Normally this is done with FTP/SFTP so that you can download or edit your WordPress files. If your website is hosted with us at Templ, then follow this guide to set up file access.


Once that is done, navigate to the root folder of your WordPress installation and edit or download file called wp-config.php.


Add the following line:
โ€‹define( 'DISALLOW_FILE_EDIT', true );
โ€‹

Important: The above line must be added before ```

/* That's all, stop editing! Happy blogging. */

ย 

That's it. Save the file (and upload it to your websites root folder in case you edited the file locally).

Did this answer your question?