Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement