# Hide Update Notices for a Specific Plugin

> Stops WordPress from offering updates for plugins you list, such as a customized plugin that must not be overwritten.

- Type: PHP
- Runs: Run everywhere
- Category: [Developer](https://wpide.com/library/category/developer/)
- Tags: developer, updates, plugins
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/hide-updates-for-plugin/

## Code

```php
add_filter( 'site_transient_update_plugins', function ( $value ) {
    // Plugin basenames: folder/main-file.php.
    $plugins = array( 'example-plugin/example-plugin.php' );

    if ( is_object( $value ) && isset( $value->response ) && is_array( $value->response ) ) {
        foreach ( $plugins as $plugin ) {
            unset( $value->response[ $plugin ] );
        }
    }

    return $value;
} );
```

## Notes

You will not hear about security fixes for the listed plugins. Check them manually.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide Update Notices for a Specific Plugin" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
