{"id":57795,"date":"2011-09-29T16:08:23","date_gmt":"2011-09-29T20:08:23","guid":{"rendered":"http:\/\/wpmu.org\/?p=57795"},"modified":"2022-02-23T01:59:58","modified_gmt":"2022-02-23T01:59:58","slug":"daily-tip-how-to-disable-plugin-and-theme-update-and-installation-on-wordpress","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-how-to-disable-plugin-and-theme-update-and-installation-on-wordpress\/","title":{"rendered":"How to Disable Plugin and Theme Updates and Installs in WordPress"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-57804 alignright\" title=\"folder_block\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/09\/folder_block.png\" alt=\"Post image\" aria-hidden=\"true\" width=\"128\" height=\"128\" \/>Here&#8217;s a quick tip that helps you to restrict access to the plugin and theme updating capability within WordPress, as well as remove the ability for users to install new plugins and themes.<\/p>\n<p>Why would you want to do this? Perhaps you&#8217;ve set up a WordPress site for a client and you don&#8217;t want them mindlessly upgrading without determining the compatibility of their theme or plugins. Poorly executed upgrades can cause a host of issues that you will more than likely be called upon to fix.<\/p>\n<p>Add this constant to your <i>wp-config.php<\/i> file to disable plugin and theme updates\/installation:<\/p>\n<div class=\"gist\" data-gist=\"243f660a6eca0768ec84ae065869a67b\" data-gist-file=\"disable wordpress plugins\"><a class=\"loading\" href=\"https:\/\/gist.github.com\/243f660a6eca0768ec84ae065869a67b.js?file=disable+wordpress+plugins\">Loading gist 243f660a6eca0768ec84ae065869a67b<\/a><div class=\"gist-consent-notice\" style=\"display:none\"><p>Please <a href=\"javascript:Cookiebot.renew()\">update your cookie preferences<\/a> to enable preference cookies to view this gist.<\/p><\/div><\/div>\n<p>In case you think it&#8217;s a horrible injustice to disable plugin and theme updates, this tip comes to you directly from the <a href=\"https:\/\/wordpress.org\/support\/article\/editing-wp-config-php\/\" rel=\"noopener\" target=\"_blank\">WordPress codex<\/a> &#8211; it&#8217;s a built-in constant. Feel free to use it as necessary.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a quick tip that helps you to restrict access to the plugin and them update\/install capability within WordPress.<\/p>\n","protected":false},"author":4099,"featured_media":170482,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[390,992],"tutorials_categories":[],"class_list":["post-57795","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-code","tag-updates"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/57795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/4099"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=57795"}],"version-history":[{"count":8,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/57795\/revisions"}],"predecessor-version":[{"id":209772,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/57795\/revisions\/209772"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/170482"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=57795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=57795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=57795"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=57795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}