Often times when working with WordPress, it is much easier to use and customize a public plugin to get the functionality you desire.
All is great right? Wrong. Chances are the author of that plugin will add updates to that plugin which will overwrite all custom changes made! Of course you could ignore the pesky update reminders, but if you hand a website over to client, they will not understand. That’s where this strong little code comes in.
add_filter('site_transient_update_plugins', 'dd_remove_update_nag');
function dd_remove_update_nag($value) {
unset($value->response[ plugin_basename(__FILE__) ]);
return $value;
}
You’ll want to add this to the bottom of the main page in the plugin. This isn’t always the index.php page. You’ll want to look for the page with the following code at the top:
/*
Plugin Name: Plugin name here
Description: WordPress plugin desc..
Version: 1.2
Author: lorem
Author URI: http://www.ipsum.com
Plugin URI: http://wordpress.org/extend/plugins/pluginz/
*/
Hope this helps other wordpress users. Cheers!



Leave A Reply Here