Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress - Disable specific plugin update check
/**
* Prevent update notification for plugin
* http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/
* Place in theme functions.php or at bottom of wp-config.php
*/
function disable_plugin_updates( $value ) {
if ( isset($value) && is_object($value) ) {
if ( isset( $value->response['plugin-folder/plugin.php'] ) ) {
unset( $value->response['plugin-folder/plugin.php'] );
}
}
return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
@toddcavanaugh

This comment has been minimized.

Copy link

commented Jun 27, 2018

Thank for sharing! Worked well. If I wanted to do this for multiple plugins, what is the best way to handle that?

@artmaug

This comment has been minimized.

Copy link

commented Jul 4, 2018

+1

@ebetancourt

This comment has been minimized.

Copy link

commented Aug 8, 2018

@toddcavanaugh I created a fork that will do this for multiple plugins: https://gist.github.com/ebetancourt/89b105d7334495535415799832511938

@markandcurry

This comment has been minimized.

Copy link

commented Nov 3, 2018

Very helpful. Thanks!

@cliffordp

This comment has been minimized.

Copy link

commented May 29, 2019

Plugin to do this for files with version control: https://github.com/cliffordp/tk-exclude-vcs-updates

@reatlat

This comment has been minimized.

Copy link

commented Jun 12, 2019

Great!
Thank you!

@juliovedovatto

This comment has been minimized.

Copy link

commented Jul 17, 2019

Great tip! Thanks dude 👍

A dev from work decided to "extend" a plugin, without telling the whole team about.

So I had to add this hook to avoid oficial plugin updates. Not the ideal approach but it will solve the problem and avoid future problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.