1. Home
  2. Wordpress
  3. Disallow file edit

In the root directory open the wp-config.php file and add the following code before the "That's all, stop editing! Happy publishing" comment. It will disable Theme Editor in the Admin area located in Appearance section. To enable it again, change the Bool attribute to false.

#wordpress#php
define('DISALLOW_FILE_EDIT', true);
copy
Full Wordpress cheatsheet