How To Disable File Editor in WordPress

WordPress provides a way to edit theme and plugin files from dashboard. It’s a very handy feature. But sometimes it can be dangerous if the client is less technical about how to write code. A single typo in the file can also make your site blank. To avoid such problems, it is a better way to disable file editor in WordPress.

disable file editor in WordPress

Disable File Editor In WordPress

Well, there are 2 ways to disable theme and plugin editor in WordPress. You can either place the below line of code in your wp-config.php file or in your theme’s functions.php file.

define('DISALLOW_FILE_EDIT', true);

That’s all. By placing the above code it will hide and disable file editor in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for video tutorials.

Leave a Reply

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