2011-07-14

by Filip Stefansson
in Admin area

Remove update notification

Code:

Instructions:

This hides the update message that is displayed when there is a new version of WordPress available.

However, we don’t want to hide it for administrators, since you always want to keep your WordPress installation fresh for security reasons. The conditional tag current_user_can() let’s us hide the message for everybody but the admins.

Related links:

http://wp-snippets.com/1695/check-user-role/