Disabling Theme and Plugin Editor in Your WordPress Admin Panel

You are here:

You can easily edit plugins and themes through the admin panel in WordPress. While this is user-friendly, it is also risky because one wrong keystroke could leave you with a blank website! It is also an issue if you want to allow admin access to other users.

If you want to disable the Theme and Plugin Editor, open your wp-config.php file and add the following code:

define(‘DISALLOW_FILE_EDIT’, true);

Was this article helpful?
Dislike 0

October 17, 2022,

Rob Jennings

After sitting through a meeting filled with talk of “customer‑centric core competencies,” he decided there was a better way to do digital. He now leads a results‑driven agency that replaces buzzwords with clear thinking, strategic marketing, and practical business advice—helping organisations use the web intelligently to support real growth.