1. Home
  2. Wordpress
  3. Disallow file mods

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 and the options to update Themes and Plugins in the CMS. To enable it again, change the Bool attribute to false.

define('DISALLOW_FILE_MODS', true);
Full Wordpress cheatsheet