{"id":5099,"date":"2020-03-11T05:44:03","date_gmt":"2020-03-11T05:44:03","guid":{"rendered":"https:\/\/expertwebtechnologies.com\/?p=5099"},"modified":"2025-01-07T12:19:17","modified_gmt":"2025-01-07T12:19:17","slug":"disable-plugin-update-notifiction","status":"publish","type":"post","link":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/","title":{"rendered":"Disable Plugin Update Notification."},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Why We Need To Disable Plugin Update?<\/h1>\n\n\n\n<p>Most Of Important plugins like Dokan , WooCommerce need many customization according to client requirements.<br>\nMany of requirements can be done using hooks\/ Filter and by copying template to theme&#8217;s folder. But Many of js or Class Function need to be change in plugin files only. which can remove when plugin is updated. And we need to do changes again and again , which is too annoying.<\/p>\n\n\n\n<p>It&#8217;s annoying to constantly ignore the <b style=\"color: red;\">Updates(2)<\/b> notice in the header! or We have Edited the plugin and don&#8217;t want to lose our edits on an update.<br>\nwe can simply use <b>&#8216;site_transient_update_plugins&#8217;<\/b> filter for that.<\/p>\n\n\n\n<p>For example if you don&#8217;t want WordPress to show update notifications for WooCommerce. than use<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\t\t<span class=\"snip keyword\">function<\/span> <span class=\"snip function\">remove_update_notifications<\/span>( $value ) {\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip function\">unset<\/span>( $value-&gt;response&#91;<span class=\"snip string\">'woocommerce\/woocommerce.php'<\/span>] );\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip keyword\">return<\/span> $value;\n}\n\n<span class=\"snip function\">add_filter<\/span>(<span class=\"snip string\">'site_transient_update_plugins'<\/span>,<span class=\"snip string\">'remove_update_notifications'<\/span>);\n<\/code><\/pre>\n\n\n\n<p>The answer will throw a PHP warning. <b style=\"color: red;\">Warning: Attempt to modify property of non-object.<\/b><\/p>\n\n\n\n<p>To avoid the warnings we have to use if clause to check and to make sure it&#8217;s an object before unsetting the response for that plugin.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\t\t<span class=\"snip keyword\">function<\/span> <span class=\"snip function\">remove_update_notifications<\/span>($value) {\n&nbsp;&nbsp;&nbsp;&nbsp;if ( <span class=\"snip function\">isset<\/span>( $value ) &amp;&amp; <span class=\"snip function\">is_object<\/span>( $value ) ) {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip function\">unset<\/span>( $value-&gt;response&#91; <span class=\"snip function\">plugin_basename<\/span>(__FILE__) ] );\n&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip keyword\">return<\/span> $value;\n}\n\n<span class=\"snip function\">add_filter<\/span>(<span class=\"snip string\">'site_transient_update_plugins'<\/span>,<span class=\"snip string\">'remove_update_notifications'<\/span>);\n<\/code><\/pre>\n\n\n\n<p>Since you&#8217;ve edited the code in plugin and don&#8217;t want to lose your edits on an update. You&#8217;ve already edited the plugin and thus don&#8217;t mind editing it more.So, put this in the actual plugin file.<\/p>\n\n\n\n<p>But if you wish you can put it in theme&#8217;s functions file , benefit of this method is you can remove multiple plugins from updates by adding another unset line for that plugin. (code for functions.php)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\t\t<span class=\"snip keyword\">function<\/span> <span class=\"snip function\">remove_update_notifications<\/span>( $value ) {\n&nbsp;&nbsp;&nbsp;&nbsp;if ( <span class=\"snip function\">isset<\/span>( $value ) &amp;&amp; <span class=\"snip function\">is_object<\/span>( $value ) ) {\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip function\">unset<\/span>( $value-&gt;response&#91; <span class=\"snip string\">'akismet\/akismet.php'<\/span> ] );\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip function\">unset<\/span>( $value-&gt;response&#91; <span class=\"snip string\">'woocommerce\/woocommerce.php'<\/span> ] );\n&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"snip keyword\">return<\/span> $value;\n}\n\n<span class=\"snip function\">add_filter<\/span>(<span class=\"snip string\">'site_transient_update_plugins'<\/span>,<span class=\"snip string\">'remove_update_notifications'<\/span>);\n<\/code><\/pre>\n\n\n\n<p>Enjoy<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why We Need To Disable Plugin Update? Most Of Important plugins like Dokan , WooCommerce need many customization according to client requirements. Many of requirements can be done using hooks\/ Filter and by copying template to theme&#8217;s folder. But Many of js or Class Function need to be change in plugin files only. which can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,31,34,36],"tags":[],"class_list":["post-5099","post","type-post","status-publish","format-standard","hentry","category-hooks","category-plugins","category-woocommerce","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Disable Plugin Update Notification. - EoXys IT<\/title>\n<meta name=\"description\" content=\"Learn how to disable plugin update notifications in WordPress. Follow our simple guide to keep your dashboard clean and avoid unnecessary alerts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disable Plugin Update Notification. - EoXys IT\" \/>\n<meta property=\"og:description\" content=\"Learn how to disable plugin update notifications in WordPress. Follow our simple guide to keep your dashboard clean and avoid unnecessary alerts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\" \/>\n<meta property=\"og:site_name\" content=\"EoXys IT\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-11T05:44:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-07T12:19:17+00:00\" \/>\n<meta name=\"author\" content=\"Shiv kumawat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shiv kumawat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\"},\"author\":{\"name\":\"Shiv kumawat\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/534245eb0e092114ff5b6d0d877af61e\"},\"headline\":\"Disable Plugin Update Notification.\",\"datePublished\":\"2020-03-11T05:44:03+00:00\",\"dateModified\":\"2025-01-07T12:19:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\"},\"wordCount\":253,\"commentCount\":0,\"articleSection\":[\"Hooks\",\"Plugins\",\"Woocommerce\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\",\"url\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\",\"name\":\"Disable Plugin Update Notification. - EoXys IT\",\"isPartOf\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/#website\"},\"datePublished\":\"2020-03-11T05:44:03+00:00\",\"dateModified\":\"2025-01-07T12:19:17+00:00\",\"author\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/534245eb0e092114ff5b6d0d877af61e\"},\"description\":\"Learn how to disable plugin update notifications in WordPress. Follow our simple guide to keep your dashboard clean and avoid unnecessary alerts.\",\"breadcrumb\":{\"@id\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eoxysit.com\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Disable Plugin Update Notification.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#website\",\"url\":\"https:\/\/eoxysit.com\/blogs\/\",\"name\":\"EoXys IT\",\"description\":\"Digitise your business\",\"alternateName\":\"Eoxys It\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eoxysit.com\/blogs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/534245eb0e092114ff5b6d0d877af61e\",\"name\":\"Shiv kumawat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png\",\"contentUrl\":\"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png\",\"caption\":\"Shiv kumawat\"},\"description\":\"\\\"Shiv kumawat is the Executive Director and CEO of Eoxys It Solution LLP and the strategic mind behind the company\\\"s growth. His expertise in operational efficiency and team leadership empowers his colleagues to excel and innovate.\u201d\",\"sameAs\":[\"https:\/\/eoxysit.com\/\"],\"url\":\"https:\/\/eoxysit.com\/blogs\/author\/shivkumawat1985\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disable Plugin Update Notification. - EoXys IT","description":"Learn how to disable plugin update notifications in WordPress. Follow our simple guide to keep your dashboard clean and avoid unnecessary alerts.","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:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/","og_locale":"en_US","og_type":"article","og_title":"Disable Plugin Update Notification. - EoXys IT","og_description":"Learn how to disable plugin update notifications in WordPress. Follow our simple guide to keep your dashboard clean and avoid unnecessary alerts.","og_url":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/","og_site_name":"EoXys IT","article_published_time":"2020-03-11T05:44:03+00:00","article_modified_time":"2025-01-07T12:19:17+00:00","author":"Shiv kumawat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shiv kumawat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#article","isPartOf":{"@id":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/"},"author":{"name":"Shiv kumawat","@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/534245eb0e092114ff5b6d0d877af61e"},"headline":"Disable Plugin Update Notification.","datePublished":"2020-03-11T05:44:03+00:00","dateModified":"2025-01-07T12:19:17+00:00","mainEntityOfPage":{"@id":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/"},"wordCount":253,"commentCount":0,"articleSection":["Hooks","Plugins","Woocommerce","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/","url":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/","name":"Disable Plugin Update Notification. - EoXys IT","isPartOf":{"@id":"https:\/\/eoxysit.com\/blogs\/#website"},"datePublished":"2020-03-11T05:44:03+00:00","dateModified":"2025-01-07T12:19:17+00:00","author":{"@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/534245eb0e092114ff5b6d0d877af61e"},"description":"Learn how to disable plugin update notifications in WordPress. Follow our simple guide to keep your dashboard clean and avoid unnecessary alerts.","breadcrumb":{"@id":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/eoxysit.com\/blogs\/disable-plugin-update-notifiction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eoxysit.com\/blogs\/"},{"@type":"ListItem","position":2,"name":"Disable Plugin Update Notification."}]},{"@type":"WebSite","@id":"https:\/\/eoxysit.com\/blogs\/#website","url":"https:\/\/eoxysit.com\/blogs\/","name":"EoXys IT","description":"Digitise your business","alternateName":"Eoxys It","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eoxysit.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/534245eb0e092114ff5b6d0d877af61e","name":"Shiv kumawat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eoxysit.com\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png","contentUrl":"https:\/\/eoxysit.com\/blogs\/wp-content\/uploads\/2025\/03\/CEO-150x150.png","caption":"Shiv kumawat"},"description":"\"Shiv kumawat is the Executive Director and CEO of Eoxys It Solution LLP and the strategic mind behind the company\"s growth. His expertise in operational efficiency and team leadership empowers his colleagues to excel and innovate.\u201d","sameAs":["https:\/\/eoxysit.com\/"],"url":"https:\/\/eoxysit.com\/blogs\/author\/shivkumawat1985\/"}]}},"_links":{"self":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/posts\/5099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/comments?post=5099"}],"version-history":[{"count":0,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/posts\/5099\/revisions"}],"wp:attachment":[{"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/media?parent=5099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/categories?post=5099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eoxysit.com\/blogs\/wp-json\/wp\/v2\/tags?post=5099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}