Buy me a coffee

How to Disable WordPress Appearance File Editor

To disable WordPress Appearance Theme Editor and Plugin File Editor, you can use:

  • iThemes Security Free
  • or edit WP-Config.php


Method 1. Using iThemes Security Plugin

Step 1. Install and activate iThemes Security (formerly Better WP Security)



Step 2. Security > Settings


Step 3. WordPress Tweaks > Configure Settings


Step 4. Scroll down, tick on Disable File Editor > Save Settings


Step 5. Refresh website


This plugin not only disables Editor in Appearance but also File Editor in Plugin

Method 2. Editing Wp-config.php

Step 1. Go to Hosting > File Manager > Find you website which you want to disable File Editor

Step 2. Right Click on wp-config.php > Edit > Edit

Insert this code into wp-config.php, under <?php

define( 'DISALLOW_FILE_EDIT', true );



Leave a Comment

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to:
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder