Skip to content

Instantly share code, notes, and snippets.

@bcullen
Created December 13, 2013 15:01
Disable Upgrade message in admin http://stackoverflow.com/posts/14935077/revisions
// Disable Upgrade message in admin
$func = function ($a) {
global $wp_version;
return (object) array(
'last_checked' => time(),
'version_checked' => $wp_version,
);
};
add_filter('pre_site_transient_update_core', $func);
add_filter('pre_site_transient_update_plugins', $func);
add_filter('pre_site_transient_update_themes', $func);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment