How to Disable WordPress file Editor in Admin Panel

How to Disable WordPress file Editor in Admin Panel

How to Disable the file editor provided in the WordPress Admin Panel

How to Disable WordPress file Editor in Admin Panel-: are you looking to disable File Editor on WordPress Admin panel but do not know how to do it? keep reading this post, In this Post, I will explain to you How to Disable File editor on Admin Panel.

 WordPress is one of the most popular CMS with over 35% of internet website are build on WordPress CMS at this time of writing this post. There other CMS like Squarespace, Joomla, Drupal etc but use by only fewer sites.

WordPress is far ahead as compared to its competitor. Previously WordPress users to create a blog or website But now WordPress core code changed a lot as well as the massive ecosystem of Plugins and theme, you can create any type of website with WordPress.

How to Disable WordPress file Editor in Admin Panel

As WordPress is more popular CMS, therefore, it is the main target for a hacker. As per Sucuri WordPress accounted for 90 per cent of all hacked CMS sites in 2018. WordPress is very secure by default itself most of the security breach occurs due to the use of theme and plugin from unauthorized sources. 

on WordPress Platform website security hardening means securing a website by reducing its surface of vulnerability. More use of theme and plugin, Showing directory or WordPress version provides a potential entry point to the hacker.

How to Disable WordPress file Editor in Admin Panel
Image Credit-:Sucuri.com

Sucuri experts blamed most of the hacks on vulnerabilities in plugins and themes, misconfiguration issues, and a lack of maintenance by webmasters, who often forgot to update their CMS, themes, and plugins. In this post, I will explain to disable the file editor in your WordPress admin panel.

How to Disable the file editor provided in the WordPress admin panel-:

There are times when you will need to edit WordPress files, especially if you want to make changes in your WordPress Theme. WordPress features a built-in editor that allows you to edit files online, using any internet browser. WordPress Dashboard has a default code editor that helps the user to edit plugin and theme code right from the dashboard.

WordPress contains two built-in editors that allow you to edit theme files directly from your browser. They are called the theme editor and the plugin editor. To Access Access the theme editor from the Administration Screens > Appearance > Editor menu and to access Plugin Editor go Administration Screens > Plugins > Editor.

I personally do not recommend editing WordPress core file fro WordPress Dashboard because you can not take the backup of your file before editing it. To edit your file either you use your hosting cPanel account or FTP client like Filezilla. You can read my complete guide on How to Use filezilla FTP client with your WordPress Hosting.

For security reason, it is always recommended to disable WordPress admin file editor in case if a hacker gets access to your WordPress Dashboard but a hacker would not be able to make any changes. to disable editing on your WordPress dashboard add the following line of code to your wp-config.php file.

define(‘DISALLOW_FILE_EDIT’, true);

Above code will completely disable file editor provided in the WordPress Admin Panel, if in future you want to edit your file from WordPress admin panel remove the code from a wp-config file.

Thanks for reading…“Pardon my grammar, English is not my native tongue.”

If you like my work, Please Share on Social Media! You can Follow WP knol on Facebook, Twitter, Pinterest and YouTube for latest updates. You may Subscribe to WP Knol Newsletter to get latest updates via Email. You May also Continue Reading my Recent Posts Which Might Interest You.

Share the Knowledge!
  • 37
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    37
    Shares
Amar Patel on FacebookAmar Patel on PinterestAmar Patel on TwitterAmar Patel on Wordpress
Amar Patel
Hi, I am Amar Patel from India. Founder, Author and Administrator of wpknol.com. I am a Simple Average Man who Loves life and Love living life.Professionally I am a Mechanical Engineer. Apart from my Job, I Love to write the things around WordPress WordPress CMS.
Enter your email address: Delivered by FeedBurner
Follow us on Social Media