Complete guide: How to disable file editing in WordPress

WordPress is most Popular rather then other CMS, you can develop any of website here such as Blog, Business, Portfolio, directory, ecommerce, and more. whenever you complete your project with WordPress, the basic responsibility comes down like update the theme, plugin and fix little bugs after updating.

And here we are going to show you How to disable file editing website dashboard.

What is file editing in WordPress?

how to disable wordpress file editing in WordPress

The WordPress interface comes with code editor for theme and plugins, this setting locate under the Appearance and Plugin section. If you have made changes with theme and plugins, the code editor allow to make it possible.

How to disable file editing in WordPress

Disable file editing in wordpress help you to prevent access of hacker to SQL injection and secure your website.

To disable the file editing option in WordPress you have to go with wp-config.php file.

  • Login your Hosting Panel
  • Goto File manager
  • Select that domain file directory
  • Locate the wp-config.php file and edit the file
  • Paste the following code at the end of the file
 define (DEFINE_FILE_EDIT; true);

Save file and that’s it

Disable wordpress file editing in wordpress

Now login your WordPress dashboard and here you can check both editing option is disappear. you will archive the same result if you using any additional plugin for this thing.

Bonus: how to disable Theme and Plugin Update in WordPress

WordPress is amazing it gives you full control over website and  you can do anything as per  your requirement. as i already said when your website project complete, its our responsibility to make secure. wordpress allow you to disable theme and plugin update option as well if you are not interested in any additional feature or function.

just paste the following code at same file.

 define( 'DISALLOW_FILE_MODS', true );

When you apply this setting you wont able to update your plugin and theme also but we do not recommend you to apply this setting, if you actually want to use website as they have right now.

Conclusion

WordPress is more than that you think, Securing the WordPress website is should be primary for every developer, If hacker trying to access your website, it wont do that shit due to disabling file editing

Passionate about digital marketing, web development and Latest Technology trends. His expertise is with WordPress, SEO and business analysis. He has Experience of decade in Digital marketing and Business Analyst. if you need any kind of help related to subject, you can contact here.

Leave a Reply

Your email address will not be published. Required fields are marked *