From 32d2fd9e06edc242afebe954fd6e499d13708d52 Mon Sep 17 00:00:00 2001 From: abuyoyo Date: Tue, 17 May 2022 04:17:56 +0300 Subject: [PATCH] remove all remove_update_notification functionality --- src/NoticeManager.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/NoticeManager.php b/src/NoticeManager.php index c6bd1c1..ad54bb4 100644 --- a/src/NoticeManager.php +++ b/src/NoticeManager.php @@ -34,9 +34,6 @@ class NoticeManager{ add_action('admin_print_footer_scripts', [$this,'admin_print_footer_scripts']); - - // we don't want to update wp-plugin registered with same name - // add_filter( 'site_transient_update_plugins', [ $this, 'remove_update_notifications' ] ); } function admin_enqueues(){ @@ -80,19 +77,4 @@ class NoticeManager{ echo '
' ; } - /** - * A plugin 'notice-manager' exists now on @link https://wordpress.org/plugins/ - * Disable update notifications completely for our plugin. - * - * @todo - use update_checker to only upload our plugin from github - */ - function remove_update_notifications($value) { - - if ( isset( $value ) && is_object( $value ) ) { - unset( $value->response[ NOTICE_MANAGER_BASENAME ] ); - } - - return $value; - } - } \ No newline at end of file