Disable plugin & theme editor screens hides the built-in code editor screens in WordPress. It is in Aegisify Shield → Hardening → Basic Hardening and is off by default for compatibility.
How it differs from “Disable file editor”
- Disable file editor focuses on stopping file edits through the dashboard at runtime.
- Disable editor screens restricts access to the editor screens themselves.
Using both gives defense in depth: even if one control is bypassed by another plugin, the other still applies.
Why hide the editors?
- A compromised administrator account cannot quickly insert malicious PHP.
- Accidental edits that break the site (a missing semicolon can cause a white screen) are avoided.
- Code changes go through proper channels, such as SFTP or version control, where they can be reviewed and rolled back.
Before enabling
Confirm your administrators and developers use deployment or file-system tools for code changes. Once enabled, the editors will no longer be available in wp-admin.
Requirements
Hardening must be enabled (one-time acknowledgment required).
Recommended combination
Enable Disable file editor and Disable editor screens, and add define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php.
Related: Disable file editing, Hardening module.
