If you’re managing a site with multiple administrators, you may wish to lock down certain features of the WordPress administration dashboard to prevent errors and configuration issues. The theme and plugin editor pages are certainly features to consider disabling as a single mistake when editing code can prevent your website from working altogether.
Disabling these editing features is quick and easy and involves adding a line to your WordPress configuration file (wp-config.php).
Log in to your HostPapa Dashboard.
In the top navigation menu, select My cPanel.
Select the cPanel File Manager and navigate to your WordPress folder. Highlight the wp-config.php file and select Edit.
Add the following line to the configuration file:
define( 'DISALLOW_FILE_EDIT', true );
Save the file, then re-load the WordPress administration dashboard. The theme and plugin editor features should have been removed. To restore access to these features, simply delete the line from your wp-config.php file.
For further questions or if you need help, please open a support ticket from your HostPapa Dashboard. Follow this link to learn how.