Removing WordPress Plugin Update Notices

, ,

In some cases you may not want to be constantly reminded that a WordPress plugin needs to be updated.

Here is how you go about hiding individual WordPress plugin update notices within the WordPress admin backend.

 

Remove WordPress Plugin Update Notice

Simply add this code to the “functions.php” file within your child theme. Below is an example on how to apply this on the default “hello” and “akismet” plugins:

 

REVEAL CODE

// REMOVE UPDATE NOTICE FOR SOME INDIVIDUAL PLUGINS
add_filter( 'site_transient_update_plugins', 'remove_update_notifications' );
function remove_update_notifications($value)
{
if ( isset( $value ) && is_object( $value ) )
{
unset( $value->response['hello.php'] );
unset( $value->response['akismet/akismet.php'] );
}
}

 

Remove Visual Composer Update Notification

Another example, how to remove update notifications for the WordPress “Visual Composer” editor plugin which is used in many themes:

 

// REMOVE UPDATE NOTICE FOR VISUAL COMPOSER
add_filter( 'site_transient_update_plugins', 'remove_update_notifications' );
function remove_update_notifications($value)
{
if ( isset( $value ) && is_object( $value ) )
{
unset( $value->response['js_composer_theme/js_composer.php'] );
}
}

 

If this article was helpful please take a moment to like us on Facebook, share this on your social media or buy us a cup of coffee.