Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannyconnolly/8216989 to your computer and use it in GitHub Desktop.
Save dannyconnolly/8216989 to your computer and use it in GitHub Desktop.
Hide update notifixcations for wordpress and plugins
/**
* Hide update notifications
*/
add_action('admin_menu','wphidenag');
function wphidenag() {
remove_action( 'admin_notices', 'update_nag', 3 );
}
/**
* Hide plugin update notifications
*/
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment