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

bbhero-file-editor1-min

Method 1. Using iThemes Security Plugin

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

bbhero-change-wordpress-admin-login-url1-min

bbhero-change-wordpress-admin-login-url2-min

Step 2. Security > Settings

bbhero-change-wordpress-admin-login-url3-min

Step 3. WordPress Tweaks > Configure Settings

bbhero-disable-file-editor1-min

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

bbhero-disable-file-editor2-min

Step 5. Refresh website

bbhero-file-editor2-min

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

bbhero-disable-file-editor-wpconfig-min

Done!

Share this post:

Leave a Comment