Last active
November 25, 2015 17:21
-
-
Save duroe5698/0bae18f2cced5708e8ed to your computer and use it in GitHub Desktop.
Hide WordPress plugin update notice from admin
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 | |
| function md_filter_plugin_updates( $value ) { | |
| if( isset( $value->response[ plugin_basename(__FILE__) ] ) ) | |
| unset( $value->response[ plugin_basename(__FILE__) ] ); //Duplicator | |
| return $value; | |
| } | |
| add_filter( 'site_transient_update_plugins', 'md_filter_plugin_updates' ); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment