Created
August 5, 2025 21:20
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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