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