How to disable the theme and plugin editor in the WordPress admin panel

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.

Plugin editor

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.

HostPapa Dashboard

In the top navigation menu, select My cPanel.

My cPanel Menu

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 );

File editor

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.

Related Articles

Get online with our affordable web hosting

Get online with our affordable web hosting

Learn more now
HostPapa Mustache