>Edit system files
Only recommended if you have a concern with others with access to your WordPress admin.
This will also restrict your own access which is not really an issue if you do not need to make changes very often.
/* disable theme editor and plugin editor */
define( ‘DISALLOW_FILE_EDIT’, true );
define( ‘DISALLOW_FILE_MODS’, true );
Once disabled, you should no longer be able to edit files inside of the WordPress admin panel.