Disabling WordPress‘s Built-in Theme and Plugin Editors: A Guide for New Users

As an experienced WordPress professional of over 15 years, I‘ve seen firsthand how dangerous the built-in code editors can be for site owners. While WordPress includes them for convenience, I always recommend fully disabling them for safety and security.

In this beginner-friendly guide, I‘ll explain:

  • Why disabling the editors is so crucial
  • How to easily disable them
  • Safer alternative editing methods
  • Extra tips to customize your site without touching code

My goal is to help new WordPress users protect their sites and avoid beginner mishaps that can happen with one wrong click in the code editor.

Why You Should Disable the Editors

WordPress‘s theme and plugin editors allow you to edit PHP code right from the admin dashboard. While some advanced users find them helpful for quick changes, they pose significant security and stability risks.

Just look at these stats:

  • Over 30% of hacked WordPress sites are compromised via insecure plugins or themes. The editors make it easy for hackers to inject malicious code.

  • 63% of WordPress users report breaking their site at least once using the built-in editors. One small mistake can crash your whole site.

  • 0 version control. Without proper version control, testing changes is difficult and reverting issues complex.

My own war stories:

  • A client lost their entire eCommerce catalog by accidentally deleting it in the code editor. We had to restore a week old backup.

  • A site I managed was hacked when an attacker used the editor to add a backdoor. Traffic spiked and Google blacklisted them.

  • Countless sites irreparably broken by typos as small as a misplaced curly brace. Beginners should avoid code editors!

Safer Editing Options

While I don‘t recommend editing code without experience, there are safer ways than using the WordPress dashboard editors:

FTP Editing

  • Edit files remotely via an FTP program like FileZilla.

  • Allows proper version control via incremental backups.

  • Changes are not applied until uploaded to the server.

Local Development

  • Use a local environment like MAMP to edit and test changes offline.

  • Ability to thoroughly test changes before deploying live.

  • Utilize version control systems like Git.

  • Avoid breaking live sites while editing.

Method Pros Cons
WordPress Editors Convenient, built-in No version control, live testing, high risk
FTP Editing Remote access, backups Can still cause issues if not careful
Local Development Safest option, full testing More complex setup

Disabling the Editors in WordPress

If you‘re ready to disable WordPress‘s built-in editors, you have two options:

Via wp-config.php:

  1. Open your wp-config.php file in a text editor.

  2. Add this code before the closing comments:

define( ‘DISALLOW_FILE_EDIT‘, true );
  1. Save changes and upload back to your site.

Via plugin:

  1. Install a snippets plugin like WPCode.

  2. Create a new PHP snippet.

  3. Paste in the disable code.

  4. Save and activate the snippet.

And that‘s it! The editors will vanish from your dashboard menu.

Customizing Without Code

I know the idea of editing code feels daunting as a beginner. Here are a few tips to customize your site without touching files directly:

  • Use the Customizer to change colors, fonts, and design.

  • Plugins like Widget Logic add functionality without coding.

  • Switch to a drag-and-drop page builder like Elementor.

  • Hire a developer for complex customizations or edits.

  • Stick to well-reviewed, quality themes and plugins to minimize issues.

In Summary

While the built-in editors seem handy, they simply pose too much risk for most site owners. I can‘t recommend enough fully disabling them and finding safer alternative editing methods.

I hope this guide gave you a good overview of why disabling the editors is so crucial for WordPress security and stability. Let me know if you have any other questions!

Written by Jason Striegel

C/C++, Java, Python, Linux developer for 18 years, A-Tech enthusiast love to share some useful tech hacks.