{"id":131,"date":"2014-03-25T10:13:56","date_gmt":"2014-03-25T10:13:56","guid":{"rendered":"http:\/\/www.dessol.com\/blog\/?p=131"},"modified":"2014-04-07T10:09:03","modified_gmt":"2014-04-07T09:09:03","slug":"disable-plugin-updates-specific-plugin-wordpress-3-8","status":"publish","type":"post","link":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/","title":{"rendered":"Disable plugin updates for a specific plugin in WordPress 3.8"},"content":{"rendered":"<p class=\"lead\">Obviously, where possible, you should always keep your plugins and WordPress versions up-to-date to avoid any security implications. However there maybe times when you need stop a plugin from updating, for example when you have modified it. This small code snippet will stop any update notifications on a specific plugin.<\/p>\n<pre><code class=\"php\">add_filter('site_transient_update_plugins', 'dd_remove_update_nag');\r\nfunction dd_remove_update_nag($value) {\r\n unset($value-&gt;response[ plugin_basename(__FILE__) ]);\r\n return $value;\r\n}\r\n<\/code><\/pre>\n<p>You need to put this code within the PHP tags in the main .php file for the plugin. And voil\u00e0! No more update notifications for that specific plugin.<\/p>\n<p>Please note that we have tested this with WordPress 3.8, but it will work all the way back to version 3.1<\/p>\n<p>&nbsp;<\/p>\n<p><em>Source: <a href=\"http:\/\/dd32.id.au\/2011\/03\/01\/disable-plugin-update-notification-for-a-specific-plugin-in-wordpress-3-1\/\" target=\"_blank\" rel=\"nofollow\">Dion Hulse<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Obviously, where possible, you should always keep your plugins and WordPress versions up-to-date to avoid any security implications. However there maybe times when you need stop a plugin from updating, for example when you have modified it. This small code snippet will stop any update notifications on a specific plugin. add_filter(&#8216;site_transient_update_plugins&#8217;, &#8216;dd_remove_update_nag&#8217;); function dd_remove_update_nag($value) {&#8230;<\/p>\n<p><a href=\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/\" class=\"more-link\" title=\"Read Disable plugin updates for a specific plugin in WordPress 3.8\"><span class=\"label label-primary\">Read more &raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,15,16],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-snippets","category-php-code-snippets","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Disable plugin updates for a specific plugin in WordPress 3.8 - Web Design &amp; Development Lowestoft Blog| Dessol<\/title>\n<meta name=\"description\" content=\"There are times when you may want to disable plugin updates in WordPress for a specific plugin. Here is a small PHP snippet which does just that.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disable plugin updates for a specific plugin in WordPress 3.8 - Web Design &amp; Development Lowestoft Blog| Dessol\" \/>\n<meta property=\"og:description\" content=\"There are times when you may want to disable plugin updates in WordPress for a specific plugin. Here is a small PHP snippet which does just that.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Design &amp; Development Lowestoft Blog| Dessol\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-25T10:13:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-07T09:09:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"780\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dessol\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dessol\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/\",\"url\":\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/\",\"name\":\"Disable plugin updates for a specific plugin in WordPress 3.8 - Web Design &amp; Development Lowestoft Blog| Dessol\",\"isPartOf\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"datePublished\":\"2014-03-25T10:13:56+00:00\",\"dateModified\":\"2014-04-07T09:09:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362\"},\"description\":\"There are times when you may want to disable plugin updates in WordPress for a specific plugin. Here is a small PHP snippet which does just that.\",\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/#primaryimage\",\"url\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"contentUrl\":\"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg\",\"width\":780,\"height\":300,\"caption\":\"PHP Code Snippet\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#website\",\"url\":\"https:\/\/www.dessol.com\/blog\/\",\"name\":\"Web Design &amp; Development Lowestoft Blog| Dessol\",\"description\":\"Work, news and murmerings\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dessol.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362\",\"name\":\"dessol\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g\",\"caption\":\"dessol\"},\"url\":\"https:\/\/www.dessol.com\/blog\/author\/dessol\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disable plugin updates for a specific plugin in WordPress 3.8 - Web Design &amp; Development Lowestoft Blog| Dessol","description":"There are times when you may want to disable plugin updates in WordPress for a specific plugin. Here is a small PHP snippet which does just that.","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:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/","og_locale":"en_GB","og_type":"article","og_title":"Disable plugin updates for a specific plugin in WordPress 3.8 - Web Design &amp; Development Lowestoft Blog| Dessol","og_description":"There are times when you may want to disable plugin updates in WordPress for a specific plugin. Here is a small PHP snippet which does just that.","og_url":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/","og_site_name":"Web Design &amp; Development Lowestoft Blog| Dessol","article_published_time":"2014-03-25T10:13:56+00:00","article_modified_time":"2014-04-07T09:09:03+00:00","og_image":[{"width":780,"height":300,"url":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","type":"image\/jpeg"}],"author":"dessol","twitter_misc":{"Written by":"dessol","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/","url":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/","name":"Disable plugin updates for a specific plugin in WordPress 3.8 - Web Design &amp; Development Lowestoft Blog| Dessol","isPartOf":{"@id":"https:\/\/www.dessol.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/#primaryimage"},"image":{"@id":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","datePublished":"2014-03-25T10:13:56+00:00","dateModified":"2014-04-07T09:09:03+00:00","author":{"@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362"},"description":"There are times when you may want to disable plugin updates in WordPress for a specific plugin. Here is a small PHP snippet which does just that.","inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.dessol.com\/blog\/disable-plugin-updates-specific-plugin-wordpress-3-8\/#primaryimage","url":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","contentUrl":"https:\/\/www.dessol.com\/blog\/wp-content\/uploads\/2014\/01\/php-code-snippet.jpg","width":780,"height":300,"caption":"PHP Code Snippet"},{"@type":"WebSite","@id":"https:\/\/www.dessol.com\/blog\/#website","url":"https:\/\/www.dessol.com\/blog\/","name":"Web Design &amp; Development Lowestoft Blog| Dessol","description":"Work, news and murmerings","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dessol.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/bb13ecb8e4b05dee2d7ec34d4a2af362","name":"dessol","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.dessol.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/36a894164074bc1f6a20492e1d14ddc1?s=96&d=mm&r=g","caption":"dessol"},"url":"https:\/\/www.dessol.com\/blog\/author\/dessol\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":6,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/posts\/131\/revisions\/139"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dessol.com\/blog\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}