Archived topic
hide remove disable GeneratePress has an update available
4 replies · Started by Webmaster on March 9, 2021
How do I get rid of the update notification? Once I click the "X" I don't want to ever see this again. Also, I clear my browser cookies quite often...

Hi there,
I don't recommend doing this but if you really must hide these dashboard update notice/s, try this PHP snippet:
// hide update 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'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes
Thank you wise man.
p.s. - why do you not recommend this? just because of update security patches?
p.s. – why do you not recommend this? just because of update security patches?
That's mostly it.
But for me personally, I find update notifications useful as reminders for me to check the changelog for any found bugs(and fixes).
The suggested solution above removes any update information.
To remove only the update nag for GeneratePress, which is actually part of GP Premium, use the following code:
remove_action( 'admin_notices', 'generate_premium_theme_information' );