Skip to content

Instantly share code, notes, and snippets.

@AkramiPro
Created August 25, 2021 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AkramiPro/ef01a0ee3268b60a4ac8bbf706e444c7 to your computer and use it in GitHub Desktop.
Save AkramiPro/ef01a0ee3268b60a4ac8bbf706e444c7 to your computer and use it in GitHub Desktop.
Wordpress Disable Plugin Update Notice
<?php
// Disable Plugin Update Notice
add_filter( 'site_transient_update_plugins', function ( $value ) {
$plugin = 'elementor/elementor.php'; // plugin slug
if ( isset( $value->response[ $plugin ] ) ) {
unset( $value->response[ $plugin ] );
}
return $value;
}, 999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment