Hide update notification for all users other than administrators
Updates notifications are one of the greatest features that WordPress uses to keep users up to date with the new security and improvements releases.
Whenever WordPress releases a new core update, a notification will show at the top and in the left sidebar of your dashboard. The notification is meant to let you know that there is a new update for your Wordpress website so that you proceed to do it manually as soon as you can.
If your WordPress Website is run by many users, you would rather hide these nagging updates notifications so that no one else could see them but you. Hiding WordPress update notifications from users comes in handy if you want to keep this task under your control.
If you want to hide update notification for all users other you as administrator, then drop the snippet bellow in your functions.php file. The snippet will check if the logged in user has administrator capabilities. If yes, the update notification will be visible, otherwise, it will be hidden for users who do not have administrator privileges.
If you are a Super Admin and you prefer to hide the update notification from all users including administrators, use the following snippet instead.