Last active
November 21, 2016 15:51
-
-
Save mspalex/4fe177b38b2910e416adf9862406ebe6 to your computer and use it in GitHub Desktop.
Disable notifications and updates of core Wordpress, Plugins and Themes.
This file contains hidden or 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
<?php | |
/* Disable All WP updates: core, plugins themes and notifications */ | |
add_action('admin_menu','wphidenag'); | |
function wphidenag() { | |
remove_action( 'admin_notices', 'update_nag', 3 ); | |
} | |
remove_action('load-update-core.php','wp_update_plugins'); | |
add_filter('pre_site_transient_update_plugins','__return_null'); | |
add_filter('pre_site_transient_update_core','__return_null'); /*remove_core_updates or __return_null*/ | |
add_filter('pre_site_transient_update_themes','remove_core_updates'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment