1. Home
  2. Knowledge Base
  3. Applications
  4. Wordpress
  5. How to Disable Theme Editor and Plugin Editor in WordPress Admin Panel

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.

Step 1: To do that, open your wp-config.php file and add the following code to it:

define( ‘DISALLOW_FILE_EDIT’, true );

Step 2: That’s all you need to do in order to disable those editors from the WordPress backend.

Click here to view this article as Oryon knowledge base video tutorial playlist.

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support