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?