Disable update nag

Adding this to your functions.php file of your wordpress theme will disable the update nag displayed within the wordpress admin.

if (!current_user_can('edit_users')) {
	add_action('init', create_function('$a', "remove_action('init', 'wp_version_check');"), 2);
	add_filter('pre_option_update_core', create_function('$a', "return null;"));

Comments  Leave a Reply

  1. This doesnt work for latest versions.plz provide for latest version of WP………. thanx

    1. This should still function without any issues however if running the most current version of wordpress an update nag would not be displayed because no update is required.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!