How to Disable File Editing in the WordPress Admin Panel?

If you scan your WordPress admin panel, you may find an option to edit your WordPress theme’s coding files, and so does for the plugins. Let me tell you that it is possible that hackers can inject some malicious code to these files and the website may get compromised. Hence it’s essential to stop such access directly to the coding files of your WordPress website through its admin area.

That’s is why whenever you want to edit something, it’s better to use cPanel.

Let me show you a screenshot to find the editing option. Login to your WordPress admin panel, go to Appearance>>Editor, this editor option is to modify your WordPress theme code.
Click here to see the screenshot

For plugins, go to Plugins>>Editor. You can see an example of the code editor here.

The .htaccess and wp-config.php are the two most vital files of a WordPress site. In most of the cases, whenever you require to add or improve any functionality you will need these files.

Follow the steps given below to Disable File Editing in the WordPress Admin Panel:

Step::1 Open cPanel and look for the File Manager.

Step::2 Now open the public_html directory

Step::3 Search for the wp-config.php file by scrolling down and right-click to Edit.

Step::4 Once you choose to Edit, you can see a popup to confirm the editing of this file. It’s a necessary step because cPanel authenticates your access. Click Edit; a new tab opens in the browser.

Step::5 You can see a bunch of coding lines. Well, no need to be scared, all you need is copy the code and paste it at the bottom of all the other codes of the file.

Step::6 Click Save Changes from the top-right corner of the screen to save the file.

Step::7 Now login again to the admin panel of your website and check if you see the Editor option for themes and plugins. If not, you have successfully disabled the file editing from WordPress dashboard.

From now onwards, no one will be able to edit the coding file of your WordPress themes and plugins, not even you.

Visit our Blog for more details. You can also watch the video here.
  • Disable file editing in the wordpress admin panel, how to disable file editing in the admin area of wordpress, How to Disable File Editing in the WordPress Admin Panel, wordpress, wordpress tutorials, disable file editing in Wordpress
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Fix WordPress error “There has been a critical error on your website”

Step::1 First of all login to your cPanel and go to File ManagerStep::2 Go inside public_html and...

How to Stay Logged in for a longer period in your WordPress?

Step::1 First of all you must know the theme which is currently activated in your website. So...

How to bulk delete spam comments in your WordPress website?

Step::1 Login to your cPanel and click on File Manager sectionStep::2 Go to public_html and then...

How to Change WordPress logo in wp-admin page?

Step::1 Login to your cPanel and go to File Manager sectionStep::2 Now go to Public_html Step::3...

How to Change WordPress Admin Username?

Step::1 Login to your WordPress dashboardStep::2 Now at the same time login to your WordPress...