← All Plugins
D
Security

Disable File Editor

AddonLogic Disable File Editor

About this Plugin

Disables the built-in WordPress theme and plugin code editors (Appearance → Theme File Editor and Plugins → Plugin File Editor) with a simple settings toggle. Uses three layers of protection: an mu-plugin that defines DISALLOW_FILE_EDIT before WordPress loads, a map_meta_cap filter that strips editor capabilities, and admin_menu removal of the menu items. Optionally also disables all file modifications (DISALLOW_FILE_MODS) and blocks plugin/theme installation.

Plugin Details

Category Security
Author Snehal Pancholi — Freelance Developer
Plugin Page https://addonlogic.com/disable-file-editor
Requires WordPress 6.0+, PHP 8.1+
License GPL-2.0+

Installation

  1. Download the plugin ZIP file using the button on this page.
  2. Go to WordPress Admin → Plugins → Add New.
  3. Click Upload Plugin and select the downloaded ZIP.
  4. Click Install Now then Activate Plugin.