Deactivate the Plugin and Theme Editors on WordPress
How to deactivate the Plugin and the Theme Editors on the Dashboard of your WordPress website?
The WordPress allows you to edit the plugins and the themes of your website through your control panel, using the Plugin and Theme Editors. This is quite convenient for you, but at the same time maybe dangerous. A typo can make your website not to load or show as blank. Another reason is because you want to give administrator access to someone who do not need to edit the code of your website.
To deactivate the Plugin and Theme Editors, you have to open the wp-config.php file and add the following code inside it:
define( 'DISALLOW_FILE_EDIT', true );
This way these two functions of the control panel will be deactivated.