Last active
March 21, 2019 17:35
-
-
Save juanjosezg/545addf2fc4f7e539f390888f6b301cb to your computer and use it in GitHub Desktop.
Hide Wordpress Notificarions
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
<?php | |
/* Hide Wordpress Notifications */ | |
function remove_core_updates(){ | |
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); | |
} | |
add_filter('pre_site_transient_update_core','remove_core_updates'); // For WordPress | |
add_filter('pre_site_transient_update_plugins','remove_core_updates'); // For all plugins | |
add_filter('pre_site_transient_update_themes','remove_core_updates'); // For all themes | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment