WordPress provides a way to edit theme and plugin files from the 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 the file editor in WordPress.
Disable File Editor In WordPress
Well, there are 2 ways to disable the 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 the file editor in WordPress.
If you liked this article, then please subscribe to our YouTube Channel for video tutorials.