Advertisement
alamin_89

Remove Update Notifiction from wordpress

Aug 5th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // hide update notifications
  2. function remove_core_updates(){
  3. global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
  4. }
  5. add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself
  6. add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
  7. 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