The good thing about WordPress is that it comes with many hooks and filters, so you can easily hook on a (php) function to modify the result. And this is how we are going to hide the nagging WordPress upgrade notification message. Note: hiding the message doesn’t mean it is unnecessary to update WordPress. It is important to always keep your WordPress up to date.

  1. Locate your theme folder and find the “functions.php” file.
  2. Add the following function to the end of the file. What the above code does is first check if the current user has the capability to update WordPress. If not, then it will remove the message from the queue and won’t show up in the Dashboard.
  3. Save the functions.php file and upload to your server, replacing the old file. That’s it. Only an administrator or a user with the capability to upgrade WordPress will see the Upgrade notification in the Dashboard.