You can easily edit plugins and themes through the admin panel in WordPress. While this is user-friendly, it is also risky because one wrong keystroke could leave you with a blank website! It is also an issue if you want to allow admin access to other users.
If you want to disable the Theme and Plugin Editor, open your wp-config.php file and add the following code:
define(‘DISALLOW_FILE_EDIT’, true);