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

When he found himself in a business conversation with someone talking about their ‘customer-centric core competencies’ he realised it was time to create a digital agency that was less about self-promoting buzz-words and more about the practical endeavour to assist clients in making effective use of the web.