How to Disable the WordPress Editors for Themes and Plugins?

In this tutorial we will learn How to disable the WordPress editors for Themes and Plugins.

Step::1 Login to your cPanel

Step::2 Open the File Manager section under Files category

Step::3 Now go to public_html and then find your WordPress installation directory

Step::4 Look for wp-config.php file and right click over the file and choose the Edit option

Step::5 Add the following code under define (‘WP_DEBUG’, false’); line

define ( 'DISALLOW_FILE_EDIT', true);


Step::6 Once you’re done with the changes, click over Save Changes

Congratulations, you have successfully disabled the WordPress editor for Themes and Plugin.

Visit our Blog for more details. You can also watch the video here.



  • How to disable the WordPress Theme and Plugin editors, Disable the WordPress Editors for Themes and Plugins, disable the WordPress Theme and Plugin editors
  • 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...