Skip to content

Instantly share code, notes, and snippets.

@yratof
Created August 9, 2013 09:19
Show Gist options
  • Save yratof/6192336 to your computer and use it in GitHub Desktop.
Save yratof/6192336 to your computer and use it in GitHub Desktop.
Remove "update available" message from wordpress dashboard
// Remove UPDATE AVAILABLE messages from Wordpress
// Not all clients want to be notifified that their
// site is out of date straight away. This way, they
// are less likely to explore the link themselves
// and either A) Update the site perfectly fine
// or b) mess the whole site up beyond replair (database)
add_action('admin_menu','wphidenag');
function wphidenag() {
remove_action( 'admin_notices', 'update_nag', 3 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment