Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save endurtech/ba82e208b669634970efa7e547a5b88b to your computer and use it in GitHub Desktop.
Save endurtech/ba82e208b669634970efa7e547a5b88b to your computer and use it in GitHub Desktop.
While not recommended, there may be occasions when you would not want to be notified of available updates for a particular WordPress plugin. This code snippet is to be added to your theme's functions.php file to prevent those notifications from appearing within the Admin backend. https://endurtech.com/disable-wordpress-plugin-update-notices/
<?php
// Disable WordPress Plugin Update Notices
// Disables the WordPress Admin plugin update notifications for any specified plugin.
// https://endurtech.com/disable-wordpress-plugin-update-notices/
add_filter( 'site_transient_update_plugins', function ( $value )
{
if ( isset( $value->response['your-plugin-folder/your-plugin-file.php'] ) )
{
unset( $value->response['your-plugin-folder/your-plugin-file.php'] );
}
return $value;
});
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment