We Push Buttons

Disabling Theme and Plugin Editor in Your WordPress Admin Panel

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
Previous: Backing up with cPanel
Next: What is a Robots.txt file?
instagram default popup image round
Follow Me
502k 100k 3 month ago
Share