How to Disable Theme Editor and Plugin Editor in WordPress Admin Panel

WordPress allows you to edit your plugin and theme files directly through its admin panel. Although handy, this is dangerous because a single typo can render your website blank. Moreover, you may want to give admin access to people that don't need to edit code.

All you need to do is to disable the Theme Editor and the Plugin Editor. To do that, open your wp-config.php file and add the following code to it:

 

 

That's all you need to do in order to disable those editors from the WordPress backend.

WordPress is a powerful software that is easy to work with once you have the right host to support you. Before you lose any more time with the wrong host, check out the SiteGround WordPress hosting offer.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Leverage Browser Caching

Add these rules to your .htaccess file in order to reduce the load times of web pages by storing...

Why BackupBuddy fails to send backups to a remote server

When backing up to a remote server, the successful completion of the process relies on many...

How to Modify my Title Tag in WordPress

To modify the title tag of your index page you need to login to the WordPress admin area and go...

How to Change my WordPress Subheading

The majority of WordPress themes take the subheading text from your blog's tagline. To edit it,...

How to troubleshoot WordPress blank page?

In most cases the WordPress application displays a blank page due to a corrupted plugin that is...