In last article, I showed you how to hide a WordPress plugin from appearing in WordPress’ plugin list, so you could hide it from your clients. Now, I’ll show you how to disable plugin update notification for a specific WordPress plugin, so your client couldn’t see it either.
Just throw this snippet to your current theme’s functions.php file:
function filter_plugin_updates( $value ) { unset( $value->response['plugin-directory/plugin-file.php'] ); return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
Replace plugin-directory/plugin-file.php in above code with your plugin’s directory and file name. You can find this info by clicking on edit plugin link from the plugin list.
Thanks works fine
Thanks worked perfectly although I didn’t need to provide the plugin directory name.
thanks for posting
Nice, clean and elegent solution. Will be using this until the concept of child-plugins comes around. Thanks!
I’m pretty sure that will never come :)