{"id":5184,"date":"2019-07-01T09:55:33","date_gmt":"2019-07-01T09:55:33","guid":{"rendered":"https:\/\/wpvivid.com\/?p=5184"},"modified":"2019-07-01T09:55:33","modified_gmt":"2019-07-01T09:55:33","slug":"disable-plugin-theme-editor-wordpress","status":"publish","type":"post","link":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html","title":{"rendered":"How to Disable the Plugin And Theme Editor in WordPress"},"content":{"rendered":"<p>One of the first things we do when <a href=\"https:\/\/wpvivid.com\/start-a-blog-with-wordpress.html\">we set up a new website<\/a> for a client is to <a href=\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\">disable the plugin and theme editor<\/a>.<\/p>\n<p>Here at WPvivid, we love WordPress; it is a very rich and powerful content management system that <a href=\"https:\/\/wpvivid.com\/best-multipurpose-wordpress-themes.html\">can run any kind of website<\/a>.<\/p>\n<p>One great feature shipped with WordPress is the ability to <a href=\"https:\/\/wpvivid.com\/manage-files-and-folders-on-admin-dashboard.html\">edit the code of your plugins and themes within your dashboard<\/a>.<\/p>\n<p>When we need to make a quick styling change on a WordPress site, it is expedient just to open the plugin and theme editor and do what we need to do.<\/p>\n<p>That\u2019s awesome, right? \u00a0You do not need to<a href=\"https:\/\/wpvivid.com\/choosing-a-wordpress-hosting.html\"> login to your host<\/a>, or <a href=\"https:\/\/wpvivid.com\/8-best-ftp-clients.html\">FTP your files<\/a>, edit them on your computer and then re-upload them.<\/p>\n<p>The question, however, is; How many website owners actually know there is a plugin and theme editor in their WordPress website?<\/p>\n<p>I am relatively certain unless the website owner is a developer or a zealous tech DIY enthusiast, the majority of website owners have no idea it even exists &#8211; \u00a0what would they do with it anyway?<\/p>\n<p>WordPress assumes that every WordPress website owner needs this feature, and further assumes that the people accessing this editor know what they are doing.<\/p>\n<p>I want to believe; it is the right assumption because it is a convenient way to modify code without switching platforms.<\/p>\n<p>However, every great tool is a weapon in the wrong hands.<\/p>\n<p>Let us assume someone unknowingly or knowingly accessed the theme editor and deleted your code, or decided to add malware into it if you did not have a <a href=\"https:\/\/wpvivid.com\/get-started-create-a-manual-backup.html\">backup of your website<\/a>\u00a0that would spell disaster.<\/p>\n<p>So, if someone does not know about the existence of the plugin and theme editor, or if they rarely use it, \u00a0for whatever reason, we think it is a good practice to disable the plugin and theme editor, which is why we do it in every WordPress website we build.<\/p>\n<p>So, how do we disable the plugin and theme editor?<\/p>\n<blockquote>\n<h2>Disable the Plugin And Theme Editor in WordPress Using A Plugin And Manually<\/h2>\n<\/blockquote>\n<h4><strong><b>Disable the plugin and theme editor using a security plugin<\/b><\/strong><\/h4>\n<p>If you have a phobia for code, the easiest way you can disable the plugin and theme editor is with a plugin.<\/p>\n<p><a href=\"https:\/\/wpvivid.com\/8-best-wordpress-firewall-plugins.html\">Most security plugins<\/a> have that feature since it is one of the things they do as they <a href=\"https:\/\/wpvivid.com\/wordpress-security.html\">harden a WordPress website<\/a>.<\/p>\n<p>Usually, the initial setup <a href=\"https:\/\/wpvivid.com\/steps-secure-your-website-against-hackers.html\">implements security recommendations<\/a> disabling the plugin and theme editor, too; however, <a href=\"https:\/\/wpvivid.com\/create-knowledge-base-in-wordpress.html\">you can consult its documentation<\/a> to know where and how to do it.<\/p>\n<p>If you are using iThemes security, for instance, select the checkbox beside the File Editor.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-5185 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/06\/ithemes.png\" alt=\"Ithemes security plugin\" width=\"900\" height=\"585\" \/><\/p>\n<h4><strong><b>Disable the plugin and theme editor by modifying the wp-config.php code<\/b><\/strong><\/h4>\n<p>You can also disable the plugin and theme editor by <a href=\"https:\/\/wpvivid.com\/how-to-edit-htaccess-file-and-insert-301-redirects.html\">modifying your code<\/a>.<\/p>\n<p>First, you will need access to the host, particularly to the wp-config.php file.<\/p>\n<p>You can<a href=\"https:\/\/wpvivid.com\/8-best-ftp-clients.html\"> use FTP to access this file<\/a> or log in to your control panel.<\/p>\n<p>With cPanel, the file is in the public_html directory.<\/p>\n<p>Right-click the wp-config.php file, then click edit.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-5186 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/06\/wpconfig-edit.png\" alt=\"wpconfig edit\" width=\"1038\" height=\"276\" \/><\/p>\n<p>When the file opens in the editor, trace for the line;<\/p>\n<p>\/* That&#8217;s all, stop editing! Happy blogging. *\/<\/p>\n<p>Right below it paste the following line of code;<\/p>\n<pre>define( 'DISALLOW_FILE_EDIT', true );<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-5187 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/06\/wpconfig-edit1.png\" alt=\"wpconfig edit 1\" width=\"800\" height=\"155\" \/><\/p>\n<p>It should now look like this, then <a href=\"https:\/\/wpvivid.com\/create-beautiful-css3-buttons.html\">click the Save changes button<\/a> on the top far right corner of the editor.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"with-border alignnone wp-image-5188 size-full\" src=\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/06\/wpconfig-edit2.png\" alt=\"wpconfig edit 2\" width=\"750\" height=\"147\" \/><\/p>\n<p>Editing your code is actually way more straightforward than installing and configuring a plugin.<\/p>\n<p>Beside, disabling the plugin will <a href=\"https:\/\/wpvivid.com\/rollback-wordpress-themes-and-plugins.html\">roll back the changes to the default state with the plugin and theme editor enabled<\/a>.<\/p>\n<blockquote>\n<h2>Final thoughts<\/h2>\n<\/blockquote>\n<p>As the most used content management system, WordPress websites are targets for hackers, do not, therefore, be casual about the <a href=\"https:\/\/wpvivid.com\/wordpress-security.html\">security of your WordPress website<\/a>.<\/p>\n<p>If there is a successful security breach, your website will be at the mercy of the hacker, so, make an effort to do the simple things that ensure your sites\u2019s security.<\/p>\n<p>In this quick guide, we have shown you two ways you can disable the plugin and theme editor in your WordPress website.<\/p>\n<ul>\n<li>You can do it with a plugin; any security plugin should work just fine.<\/li>\n<li>The second way is by modifying your wp-config.php and adding a single line of code.<\/li>\n<\/ul>\n<p>Both ways are simple to implement, the first works for individuals who do not like messing with code.<\/p>\n<p>If I were to recommend an option, that is if you are not using a security plugin for other security tasks on your website is to use the second method where you only need to add a single line of code into your wp-config.php file.<\/p>\n<p>You may also want to learn <a href=\"https:\/\/wpvivid.com\/rollback-wordpress-themes-and-plugins.html\">how to rollback WordPress themes and plugins.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.<\/p>\n","protected":false},"author":3,"featured_media":5189,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","iawp_total_views":22},"categories":[80],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Disable the Plugin And Theme Editor in WordPress - WPvivid<\/title>\n<meta name=\"description\" content=\"Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Disable the Plugin And Theme Editor in WordPress - WPvivid\" \/>\n<meta property=\"og:description\" content=\"Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\" \/>\n<meta property=\"og:site_name\" content=\"WPvivid\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-01T09:55:33+00:00\" \/>\n<meta name=\"author\" content=\"TonyRobins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TonyRobins\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\",\"url\":\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\",\"name\":\"How to Disable the Plugin And Theme Editor in WordPress - WPvivid\",\"isPartOf\":{\"@id\":\"https:\/\/wpvivid.com\/#website\"},\"datePublished\":\"2019-07-01T09:55:33+00:00\",\"dateModified\":\"2019-07-01T09:55:33+00:00\",\"author\":{\"@id\":\"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0\"},\"description\":\"Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpvivid.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Disable the Plugin And Theme Editor in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpvivid.com\/#website\",\"url\":\"https:\/\/wpvivid.com\/\",\"name\":\"WPvivid\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpvivid.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0\",\"name\":\"TonyRobins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpvivid.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png\",\"contentUrl\":\"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png\",\"caption\":\"TonyRobins\"},\"url\":\"https:\/\/wpvivid.com\/author\/tonyrobins\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Disable the Plugin And Theme Editor in WordPress - WPvivid","description":"Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html","og_locale":"en_US","og_type":"article","og_title":"How to Disable the Plugin And Theme Editor in WordPress - WPvivid","og_description":"Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.","og_url":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html","og_site_name":"WPvivid","article_published_time":"2019-07-01T09:55:33+00:00","author":"TonyRobins","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TonyRobins","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html","url":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html","name":"How to Disable the Plugin And Theme Editor in WordPress - WPvivid","isPartOf":{"@id":"https:\/\/wpvivid.com\/#website"},"datePublished":"2019-07-01T09:55:33+00:00","dateModified":"2019-07-01T09:55:33+00:00","author":{"@id":"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0"},"description":"Disable the plugin and theme editor for security reasons if you rarely use it. This guide shows how to disable the plugin and theme editor in WordPress.","breadcrumb":{"@id":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpvivid.com\/disable-plugin-theme-editor-wordpress.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpvivid.com\/"},{"@type":"ListItem","position":2,"name":"How to Disable the Plugin And Theme Editor in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/wpvivid.com\/#website","url":"https:\/\/wpvivid.com\/","name":"WPvivid","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpvivid.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpvivid.com\/#\/schema\/person\/7cd2b626d269c38ca5456654d1a5d2e0","name":"TonyRobins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpvivid.com\/#\/schema\/person\/image\/","url":"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png","contentUrl":"https:\/\/wpvivid.com\/wp-content\/uploads\/2019\/10\/logo1-96x96.png","caption":"TonyRobins"},"url":"https:\/\/wpvivid.com\/author\/tonyrobins"}]}},"_links":{"self":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/posts\/5184"}],"collection":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/comments?post=5184"}],"version-history":[{"count":0,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/posts\/5184\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/media?parent=5184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/categories?post=5184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpvivid.com\/wp-json\/wp\/v2\/tags?post=5184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}