How to Disable Plugin and Theme Editors in WordPress

Categories Code Editor, Components, Plugins, Themes
Disable Plugin and Theme Editors in WordPress

WordPress allows users to edit their plugins and themes using back-end code editor. It is a really bad editor when it comes to editing your code. A lot of hosting providers disable plugin and theme editors by default to prevent users from crashing their websites.

It only takes a single line of code to crash your entire website. A single missing parentheses can crash your entire website.

If you are also running a site for someone who is not experienced with code then it might be a good idea to disable code editor to prevent them from making such mistakes. You will still be able to edit the code using FTP. Doing this will also provide an extra layer of security in case a hacker gains access to your Dashboard.

Disable Plugin and Theme Editors

You can add the following line of code to the wp-config.php file to disable plugin and theme editors:

You will have to use your FTP or File Manager to edit your wp-config.php file, which should be located in the root of your WordPress install. Once added, save the file and the editors should not appear in your Dashboard anymore.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.