{"id":1963899,"date":"2025-01-13T08:47:32","date_gmt":"2025-01-13T13:47:32","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1963899"},"modified":"2025-01-13T09:08:03","modified_gmt":"2025-01-13T14:08:03","slug":"how-to-disable-auto-updates-for-all-wordpress-plugins","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/how-to-disable-auto-updates-for-all-wordpress-plugins\/","title":{"rendered":"How to Disable Auto-updates for All WordPress Plugins"},"content":{"rendered":"\n<p>In recent versions of WordPress, it is possible to select which plugins will have an Auto-update feature (In the <strong>Plugins &gt; Installed Plugin<\/strong> section of the WordPress Dashboard), to avoid the task of doing it manually, especially for plugins that have new releases frequently.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1099\" height=\"457\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/EnableAutoUpdates.jpg\" alt=\"Enable Auto Updates\" class=\"wp-image-1963908\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/EnableAutoUpdates.jpg 1099w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/EnableAutoUpdates-300x125.jpg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/EnableAutoUpdates-1024x426.jpg 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/EnableAutoUpdates-768x319.jpg 768w\" sizes=\"auto, (max-width: 1099px) 100vw, 1099px\" \/><\/figure>\n\n\n\n<p>But sometimes it is advisable to test the plugin update on a <strong><a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/creating-and-using-a-wordpress-staging-site\/\">staging site<\/a><\/strong> to make sure it doesn&#8217;t cause any issues, and then proceed to update it on the production site, so disabling Auto-update for certain plugins can be quite useful.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"342\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/DisableAutoUpdates-1024x342.jpg\" alt=\"\" class=\"wp-image-1963911\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/DisableAutoUpdates-1024x342.jpg 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/DisableAutoUpdates-300x100.jpg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/DisableAutoUpdates-768x256.jpg 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/DisableAutoUpdates.jpg 1072w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>However, there are times when we need to disable or enable the Auto-updates feature for <strong>All plugins<\/strong>, so that none of them update automatically and no one can change it. To do this, we can insert the following PHP piece of code at the end of the&nbsp;<em>functions.php<\/em>&nbsp;theme file (ensure not to overwrite any existing code there) or by using the&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a>&nbsp;plugin:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; gutter: false; title: ; notranslate\" title=\"\">\nadd_filter( &#039;auto_update_plugin&#039;, &#039;__return_false&#039; );\n<\/pre><\/div>\n\n\n<p>After this, the Auto-updates features will be disabled for all plugins:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"412\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/AutoUpdatesDisabled-1024x412.png\" alt=\"Auto Updates disabled\" class=\"wp-image-1963921\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/AutoUpdatesDisabled-1024x412.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/AutoUpdatesDisabled-300x121.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/AutoUpdatesDisabled-768x309.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/01\/AutoUpdatesDisabled.png 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In this way, we will ensure that our website can undergo unexpected changes with the automatic update of plugins.<\/p>\n\n\n\n<p>But please remember that keeping your WordPress plugins updated is crucial for <strong>security and performance<\/strong>, so, in this case, we should always be careful to update them manually and consistently, testing it on a staging site as mentioned above.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In recent versions of WordPress, it is possible to select which plugins will have an Auto-update feature (In the Plugins &gt; Installed Plugin section of the WordPress Dashboard), to avoid the task of doing it manually, especially for plugins that have new releases frequently. But sometimes it is advisable to test the plugin update on&#8230;<\/p>\n","protected":false},"author":66,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[24,59,79,108],"tags":[258,25,109],"stellar-product-taxonomy":[],"class_list":["post-1963899","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","category-customizing-resources","category-snippets","category-wordpress","tag-auto-updates","tag-customizations","tag-wordpress"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"},{"value":59,"label":"PHP &amp; Functions"},{"value":79,"label":"Snippets"},{"value":108,"label":"WordPress"}],"post_tag":[{"value":258,"label":"Auto-updates"},{"value":25,"label":"Customizations"},{"value":109,"label":"WordPress"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Sammy","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/sammy\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":59,"name":"PHP &amp; Functions","slug":"customizing-resources","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":101,"filter":"raw","term_order":"0","cat_ID":59,"category_count":101,"category_description":"","cat_name":"PHP &amp; Functions","category_nicename":"customizing-resources","category_parent":24},{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":136,"filter":"raw","term_order":"0","cat_ID":79,"category_count":136,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0},{"term_id":108,"name":"WordPress","slug":"wordpress","term_group":0,"term_taxonomy_id":108,"taxonomy":"category","description":"","parent":0,"count":11,"filter":"raw","term_order":"0","cat_ID":108,"category_count":11,"category_description":"","cat_name":"WordPress","category_nicename":"wordpress","category_parent":0}],"tag_info":[{"term_id":258,"name":"Auto-updates","slug":"auto-updates","term_group":0,"term_taxonomy_id":258,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw","term_order":"0"},{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":109,"name":"WordPress","slug":"wordpress","term_group":0,"term_taxonomy_id":109,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1963899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1963899"}],"version-history":[{"count":14,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1963899\/revisions"}],"predecessor-version":[{"id":1963923,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1963899\/revisions\/1963923"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1963899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1963899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1963899"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1963899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}