Disallow direct file edition
Disallow direct file edition
By default, WordPress allows the site administrator to directly edit themes and plugins files through a built-in editor. This is very useful, but if you’re building a site for a client you probably don’t want him to break the site. Here’s a simple way to disallow direct file edition.
define(‘DISALLOW_FILE_EDIT’, TRUE);