0

Since plugin updates might bring some unexpected issues to the compatibilies.

Is it recommended to modify plugin version value to fool the wordpress plugin update system if priority is to turn off plugin out-of-date warnings from wordpress backend ?

1

You can use site_transient_update_plugins hook to disable plugin updates.

function filter_plugin_updates( $value ) {
    unset( $value->response['plugin_folder/plugin_name.php'] );
    return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
| improve this answer | |
  • /* e.g. adding below function in any plugin's root php file to stop showing plugin upgrade alert is tested working */ add_filter('site_transient_update_plugins', 'remove_update_notification'); function remove_update_notification($value) { unset($value->response[ plugin_basename(FILE) ]); return $value; } – BOBO Feb 21 '17 at 9:57
  • I would suggest to put it in your functions, rather than modifying your plugin. – Aniruddha Gawade Feb 21 '17 at 10:12
1

We've used this plugin with a great deal of success:

https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/

It allows you to selectively switch off individual updates for the core, plugins, drop-ins and themes; or switch off updates for the whole lot.

It also blocks update warnings and notices, without you having to mess with your code.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.