Last active
January 1, 2016 23:29
-
-
Save dannyconnolly/8216989 to your computer and use it in GitHub Desktop.
Hide update notifixcations for wordpress and plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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