1

How to Disable Theme and Plugin Editors from WordPress Admin Panel

By default, WordPress comes with a feature where users can edit theme and plugin file directly from the WordPress admin dashboard. This is a very useful option as it allows you to edit any theme or plugin file from the WordPress dashboard.

However, it can be a serious security issue to your site. If anyhow hackers gain unauthorized access to your WordPress admin panel, the first thing they look for is injecting malicious codes. Now, if your WordPress theme and plugin editors are editable, then they can inject any type of malicious code which will be unknown to you.Disable Theme and Plugin Editors PNG Generally, most of the users hardly check their WordPress theme or plugin editor area and it’s hard to detect what is wrong in it. That’s why I recommend using Securi Security. Securi security always monitors our WordPress sites 24×7. More than that, it also scans your plugin file and if it detects any suspicious code in it, it lets you know via email notification and helps you to remove the hack.

Besides, if you are running a multi-author WordPress site, then a higher-level user can edit your theme or plugin. Not to mention, any mis-edit in theme editor can end up by inaccessible to your website. 

To prevent these type of issues, you can disable theme and plugin editors from your WordPress admin panel by adding a simple line of code to your (wp-config.php) file.

In this article, I will show you how to disable theme and plugins editors from your WordPress site.

How to disable theme and plugin editors from WordPress admin panel

Before we start, let’s see how the editor looks like.

 

WordPress Theme Editor

You can access both theme and plugin editor by going Appearance> Editor and Plugins> Editor.

Disabling theme and plugin editors are quite easy. First, you need to login to your hosting cPanel and go to the root directory where your WordPress site is hosted.

From there, find the wp-config.php file and click on edit. Then add the following code:

define( 'DISALLOW_FILE_EDIT', true );

Save the file and reload your WordPress dashboard. You can see the theme and plugin editors have been removed. If you want to restore the feature, simply delete the code from the file.

That’s it. This is how you can disable theme and plugin editors from your WordPress dashboard.

 

Related articles,

*This post may have affiliate links, which means I may receive a small fee if you choose to purchase through my links (at no extra cost to you). This helps us to keep WPMyWeb up and running and up-to-date. Thank you if you use our links, we really appreciate it! Learn more.

Sharing is Caring
Jyoti Ray
 

Jyoti Ray is the founder of WPMyWeb.com. He writes about Blogging, WordPress tutorials, Hosting, Affiliate marketing etc. He mostly spends times on blogging, reading books and cooking.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
newest
oldest most voted
Inline Feedbacks
View all comments
Tapiram patil

your knowledge is very helpful to every word press user who don’t know about it.

where to buy viagra buy generic 100mg viagra online
buy amoxicillin online can you buy amoxicillin over the counter
buy ivermectin online buy ivermectin for humans
viagra before and after photos how long does viagra last
buy viagra online where can i buy viagra
Glastrennwände
blumen verschicken Blumenversand
blumen verschicken Blumenversand
Reinigungsservice Reinigungsservice Berlin
küchenrenovierung küchenfronten renovieren küchenfront erneuern