Knowledgebase

How to Disable Theme Editor and Plugin Editor in WordPress Admin Panel

WordPress allows you to edit your plugin and theme files directly through its admin panel. Although handy, this is dangerous because a single typo can render your website blank. Moreover, you may want to give admin access to people that don't need to edit code.

All you need to do is to disable the Theme Editor and the Plugin Editor. To do that, open your wp-config.php file and add the following code to it:

define( 'DISALLOW_FILE_EDIT', true );

That's all you need to do in order to disable those editors from the WordPress backend.

NOTE: All Managed Wordpress Hosting clients already have this disabled by default for security reasons.

  • Wordpress Settings
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to increase the WordPress Multisite Network limit for Maximum Filesize Upload?

When adding pictures, videos or other media to a WordPress Multisite, you may often stumble...

Powered by WHMCompleteSolution

The Hosting Guy. All rights reserved
Top