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.
| 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+ |