Created
August 25, 2021 14:16
-
-
Save AkramiPro/ef01a0ee3268b60a4ac8bbf706e444c7 to your computer and use it in GitHub Desktop.
Wordpress Disable Plugin Update Notice
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 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